Skip to content

Instantly share code, notes, and snippets.

View shikharbhardwaj's full-sized avatar

Shikhar Bhardwaj shikharbhardwaj

View GitHub Profile
@hereismari
hereismari / msi-gtx1060-ubuntu-18.04-deeplearning.md
Last active December 3, 2023 17:14
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
@shikharbhardwaj
shikharbhardwaj / naive_bayes_classifier_impl.hpp
Last active June 9, 2017 15:26
Implementation of the parallel naive bayes classifier in mlpack
/**
* @file naive_bayes_classifier_impl.hpp
* @author Parikshit Ram (pram@cc.gatech.edu)
* @author Vahab Akbarzadeh (v.akbarzadeh@gmail.com)
* @author Shihao Jing (shihao.jing810@gmail.com)
*
* A Naive Bayes Classifier which parametrically estimates the distribution of
* the features. This classifier makes its predictions based on the assumption
* that the features have been sampled from a set of Gaussians with diagonal
* covariance.
<snippet>
<content><![CDATA[
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
#include <cmath>
#include <iterator>
#include <map>
#include <set>
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1