Skip to content

Instantly share code, notes, and snippets.

@TanmDL
TanmDL / 0.useful.md
Created June 28, 2022 02:31 — forked from felipemoraes/0.useful.md
Machine Learning Interview Questions
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import torch.nn.functional as F
import matplotlib.pyplot as plt
import numpy as np
@TanmDL
TanmDL / weight_init.py
Created September 25, 2019 00:59 — forked from jeasinema/weight_init.py
A simple script for parameter initialization for PyTorch
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
import torch
import torch.nn as nn
import torch.nn.init as init
def weight_init(m):
'''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TanmDL
TanmDL / mutual_info.py
Created June 6, 2019 03:48 — forked from GaelVaroquaux/mutual_info.py
Estimating entropy and mutual information with scikit-learn
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
These computations rely on nearest-neighbor statistics
'''
import numpy as np
@TanmDL
TanmDL / covarianceSSVEPextraction.ipynb
Created May 7, 2019 10:38 — forked from sylvchev/covarianceSSVEPextraction.ipynb
Building extended SSVEP covariance matrices for EEG-based cerebral interfaces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.