Open in app

Sign In

Write

Sign In

Jimmy (xiaoke) Shen
Jimmy (xiaoke) Shen

235 Followers

Home

About

Jan 17

The hardest union find problem ever

I have been playing in LC for a while and have solved quite a lot of problems by using union-find. If you want to see some of my previous posts, please check my personal website “software engineer” part’s union-find topic. Yesterday, I encountered the hardest union find the problem so…

Leetcode

5 min read

The hardest union find problem ever
The hardest union find problem ever
Leetcode

5 min read


Jan 10

Max Points on a Line

From O(n³) to O(n²) It’s been a while not coding on the LC platform. Today I just solved an interesting geometry problem and I’d like to share my solution here: Problem 149. Max Points on a Line Ideas Solve the problem brute force. Since n is relatively small, a O(n³) solution is…

Leetcode

3 min read

Leetcode

3 min read


Published in DataDrivenInvestor

·Dec 29, 2022

Stable Diffusion

Papers, blogs, talks — Stable diffusion is pretty powerful. It can generate some pretty cool images by using text prompts and it is open-source. Generally speaking, stable diffusion can change the text to an image. For example, if you have a text prompt: “A hard-working blogger is writing an article about stable diffusion models.” …

Stable Diffusion

2 min read

Stable Diffusion
Stable Diffusion
Stable Diffusion

2 min read


Dec 28, 2022

Install JAX on linux based on CUDA 10.1

CUDA version I have I have CUDA 10.2 on my linux ubuntu machine nvidia-smi Tue Dec 27 13:29:57 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name…

Jax

2 min read

Install JAX on linux based on CUDA 10.1
Install JAX on linux based on CUDA 10.1
Jax

2 min read


Dec 9, 2022

Vim and Python

A Match Made in Heaven — The article is such as good one that it solved all my question regarding vim and python. Read it if you use Vim and Python. Reference [1] VIM and Python — A Match Made in Heaven

Vim

1 min read

Vim and Python
Vim and Python
Vim

1 min read

Vim and Python

A Match Made in Heaven

The article is such as good one that it solved all my question regarding vim and python. Read it if you use Vim and Python.

From [1]

Reference

[1] VIM and Python — A Match Made in Heaven

--

--


Dec 8, 2022

All you need to know about Python Type Hints

Why and How — As you know that python is a dynamic typing language. The dynamic typing introduce lots of convenience, meanwhile, it also may introduce problems to your code especially when you code are being used a lot by other people either private or public. Here I put some useful blogs togehter with some good packages of using Type hints for reference to readers. Blogs Pros and Cons of Type Hints

Type Hints

1 min read

All you need to know about Python Type Hints
All you need to know about Python Type Hints
Type Hints

1 min read

All you need to know about Python Type Hints

Why and How

As you know that python is a dynamic typing language. The dynamic typing introduce lots of convenience, meanwhile, it also may introduce problems to your code especially when you code are being used a lot by other people either private or public.

Here I put some useful blogs togehter with some good packages of using Type hints for reference to readers.

Blogs

Pros and Cons of Type Hints

12 Beginner Concepts About Type Hints To Improve Your Python Code

Code Better With Type Hints — Part 3 — PyBites

The state of type hints in Python · Tech articles by Bernát Gábor (bernat.tech)

Packages

Pydantic

“Data parsing and validation using Python type hints”

--

--


Published in DataDrivenInvestor

·Dec 5, 2022

Technologies behind ChatGPT

How can ChatGPT achieve? If you play with ChatGPT from OpenAI recently, you may surprised of the performance. I tried some, and it is pretty nice. Write a paper abstract I am using one of my paper’s title to ask this question, and the output looks quite reasonable. Pretty good at probability

Chatgpt

3 min read

Technologies behind ChatGPT
Technologies behind ChatGPT
Chatgpt

3 min read


Nov 9, 2022

Interesting artificial intelligence and machine learning websites

Distill — It has some pretty nice articles with nice visualization. The Gradient The Gradient is a digital magazine covering research and trends in artificial intelligence and machine learning. From the official website LessWrong LessWrong and Artificial Intelligence For several reasons, LessWrong is a website and community with a strong interest in AI and specifically…

AI

1 min read

AI

1 min read


Nov 8, 2022

Transformer number of parameters estimation

From the original paper we know that base has about 65M parameters, while the big has 213M parameters. The question is how to compute those number of parameters? How to computer number of parameters?

Transformers

3 min read

Transformer number of parameters estimation
Transformer number of parameters estimation
Transformers

3 min read


Nov 6, 2022

Large Language Model: GPT3

Explore GPT3 alternatives — This article is not talking about what is GPT1/2/3. If you don’t know those models yet, you can first check other online blogs and videos to know what those models are doing first. Here is a quick summary (Also needs the read knows what is transformer): To be short, GPT1/2/3…

Gpt 3

2 min read

Large Language Model: GPT3
Large Language Model: GPT3
Gpt 3

2 min read

Jimmy (xiaoke) Shen

Jimmy (xiaoke) Shen

235 Followers

Data Scientist/MLE/SWE @takemobi

Following
  • Dmytro Iakubovskyi

    Dmytro Iakubovskyi

  • Amy @GrabNGoInfo

    Amy @GrabNGoInfo

  • Liquid Ocelot

    Liquid Ocelot

  • Mike Schnettler

    Mike Schnettler

  • Yogesh Haribhau Kulkarni (PhD)

    Yogesh Haribhau Kulkarni (PhD)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech