Skip to content

Instantly share code, notes, and snippets.

View tranctan's full-sized avatar
🧑‍💻
Busy being awe(some)

Tan Tran tranctan

🧑‍💻
Busy being awe(some)
View GitHub Profile
@tranctan
tranctan / installing_cuda_on_linux.md
Last active August 13, 2024 08:28
How to install CUDA and run Pytorch on Linux

How to install CUDA and run Pytorch on Linux

In order to run Pytorch with CUDA sucesfully, we need to install 2 things:

  • The CUDA Toolkit from NVIDIA, which includes the CUDA drivers and NVIDIA drivers
  • The CUDA Toolkit from Conda, comes along with Pytorch, to make pytorch interacts with CUDA driver

Check the version of CUDA

  • Check the current CUDA version that is supported by Pytorch. In the image below we can see that currently Pytorch supports CUDA 11.3
  • image
  • Next, check if this CUDA version is supported for your GPU. Check the GPUs supported session in this CUDA wikiperdia.
title tags
About Python
Python

About Python

What is Python?

  • Python is an OOP language, which means that it can model real-world objects.
  • Python is an interpreted language.
title tags
Pandas
Pandas

A Quick Start with Pandas

What is Pandas?

Pandas is an open-source Python Library providing high-performance data manipulation and analysis tool using its powerful data structures. The name Pandas is derived from the word Panel Data.

title tags
Teaching vs Presenting
Teaching Research Prep

Teaching Vs Presenting - How to Teach Better

A teacher makes sure that their students truly understand the information and take action with it.

title tags
Time Series Analysis
Time Series

Time Series Analysis

A normal machine learning dataset is a collection of observations.

For example:

title tags
Regular Expression (RE) in Python
Regular Expression

Regular Expression in Python

Control Characters

+ ? . * ^ $ ( ) [ ] { } | \

title tags
What is Derivatives ?
Calculus

What is the Nature of Derivatives?

In algebra you learned to calculate the slope of a straight line. y = mx + b, right? m is the slope.

title tags
Machine Learning - Recommendation System
Machine Learning, Recommendation System

Machine Learning - Recommendation System

What is Recommendation System ?

A Recommender System (RecSys) or a Recommendation system is a subclass of information filtering system that seeks to recommend relevant items for users, based on their preference. Preference and relevance are subjective, and they are generally inferred by items users have consumed previously.

Recommendation Techniques

title tags
About Statistical Learning
Machine Learning, ISL

About Statistical Learning

Refs: Chapter 2 - Introduction to Statistical Learning (ISL)

By convention:

  • X: predictors, features, input variable, independent variable or sometimes just variable.
title tags
Naive Bayes Classifier
Machine Learning, Classification, Naive Bayes

Naive Bayes Classifier (NBC)

Naive Bayes is a simple, fast and reliable probabilistic model. It has been widely used for classification tasks but especially work well with NLP problems.

Principles of NBC

"Naive" Part: