Skip to content

Instantly share code, notes, and snippets.

View mohapatras's full-sized avatar

Bhabani mohapatras

  • Bangalore, India
  • 06:05 (UTC +05:30)
View GitHub Profile
@mohapatras
mohapatras / sensivity_specifity_cutoff.py
Created May 13, 2022 23:33 — forked from twolodzko/sensivity_specifity_cutoff.py
Use Youden index to determine cut-off for classification
import numpy as np
from sklearn.metrics import roc_curve
def sensivity_specifity_cutoff(y_true, y_score):
'''Find data-driven cut-off for classification
Cut-off is determied using Youden's index defined as sensitivity + specificity - 1.
Parameters
----------
@mohapatras
mohapatras / install_nvidia_driver.md
Created February 15, 2022 05:23 — forked from espoirMur/install_nvidia_driver.md
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I had many driver installed I my virtual machine , so It was actually the reason why I was having the error.

To fix it I had first to remove all driver I have installed before using :

  • sudo apt-get purge nvidia-*
  • sudo apt-get update -sudo apt-get autoremove

After that I when a head and installed the latest version of it nvidia driver:

I did :

@mohapatras
mohapatras / installing_nvidia_driver_cuda_cudnn_linux.md
Created October 15, 2021 03:31 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@mohapatras
mohapatras / check_cuda_cudnn.md
Created October 15, 2021 03:30 — forked from Jongbhin/check_cuda_cudnn.md
[Cuda cudnn version check] #cuda #cudnn #nvidia

To check nvidia driver

modinfo nvidia

To check cuda version

cat /usr/local/cuda/version.txt
@mohapatras
mohapatras / plank_notes
Created September 14, 2017 04:13 — forked from erogol/plank_notes
Kaggle Plankton Classification winner's approach notes
FROM: http://benanne.github.io/2015/03/17/plankton.html
Meta-Tricks:
- Use %10 for validation with STRATIFIED SAMPLING (my mistake)
- Cyclic Pooling
- Leaky ReLU = max(x, a*x) learned a
- reduces overfitting with a ~= 1/3
- Orthogonal initialization http://arxiv.org/pdf/1312.6120v3.pdf
- Use larger weight decay for larger models since otherwise some layers might diverge
@mohapatras
mohapatras / 0_reuse_code.js
Created June 11, 2017 16:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console