Skip to content

Instantly share code, notes, and snippets.

@sizhky
sizhky / prevent_tf_hogging.py
Last active August 6, 2020 05:57
Prevents Tensorflow from hogging all the GPU resources
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth=True
sess = tf.Session(config=config)
import tensorflow as tf
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth=True
sess = tf.compat.v1.Session(config=config)
@sizhky
sizhky / 7321c_Q.txt
Last active April 28, 2018 07:23
cse7321 viva questions
What is perceptron
Fullyconnect ante enti?
Shallow vs Deep Learning (Why Deep)
Issues with Deep Learning
Uses of Unsupervised methods
What are auto encoders
Loss functions for Regression, Classification
What are dropouts and their suggested range
Three key advantages of CNNs over NNs
Which paratemer influences the depth of feature map
@sizhky
sizhky / .bashrc
Last active July 4, 2023 10:56
bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@sizhky
sizhky / .tmux.conf
Last active December 14, 2023 13:39
.tmux.conf
set -g default-terminal "screen-256color"
set -g mouse on
set-option -g renumber-windows on
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
bind-key b send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m
bind-key w send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m "watch nvidia-smi" C-m
bind-key y send-keys "bash" C-m "cd /data1/yeshwanth" C-m "conda activate mdm" C-m
bind-key c new-window "bash"
# List of plugins
@sizhky
sizhky / rnn-activations.ipynb
Created September 2, 2018 05:46
keras activations in different place give different results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sizhky
sizhky / Untitled.ipynb
Last active September 10, 2018 14:51
ocr/Untitled.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from bokeh.plotting import figure, show
from bokeh.io import output_notebook, push_notebook
%matplotlib inline
output_notebook()
from math import pi
import numpy as np
from time import sleep
@sizhky
sizhky / datetime.py
Last active May 4, 2019 11:34
Insert date & time in sublime using a key-stroke
import sublime, sublime_plugin, time
class InsertDatetimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
sel = self.view.sel();
for s in sel:
# o = time.ctime().split()
# o = ' '.join(o[1:3] + ['(' + o[0] + ')'])
# self.view.replace(edit, s, o)
self.view.replace(edit, s, o)
@sizhky
sizhky / ~_.config_nvim_init.vim
Last active October 31, 2019 04:33
My vimrc
let mapleader=","
nnoremap : ;
nnoremap ; :
" Normal Clipboard
set clipboard=unnamed
" FILE SEARCHING
set path+=**
set wildmenu
" TAG JUMPING
command! MakeTags !ctags -R .
@sizhky
sizhky / .spacemacs
Last active August 27, 2020 06:09
.spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
;; Ippikayak other buckets
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default