Skip to content

Instantly share code, notes, and snippets.

View rishi-a's full-sized avatar
🎯
Focusing

Rishiraj Adhikary rishi-a

🎯
Focusing
View GitHub Profile
# plots to be manullly made using results from sheet
#Cloth Mask
#get final numbers by running the ML pipeline above
rf_pe= [3.5,4.7,5.2] #MAE for healthy with Random Forest
lr_pe = [3.2,6.7,6.3]
svr_pe = [8.2,9.7,8.2]
rf_std= [1.5,2.2,1.1] #STD for healthy with Random Forest
lr_std = [1.3,2.2,1.5]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
['BR02',
'BR03',
'BR04',
'BR05',
'BR06',
'BR07',
'BR08',
'BR09',
'BR10',
'BR11',
@rishi-a
rishi-a / sentiment-tblob-result.csv
Created April 9, 2020 07:12
Sentiment Analysis on "air pollution disease" Tweets
0 polarity subjectivity
0 familiar negat effect pollut know damag eye 0.375 0.5
1 rebuild neighbourhood layout act solar calendar light effect solstic equinox larg statu middl chang facial express depend level pollut 0.2 0.35
2 filter protect brain pollut learn filter abil preserv indoor qualiti hold protect brain detriment effect post filter protect brain 0.0 0.0
3 shortterm effect pollut bloodpressur 0.0 0.0
4 background cool paper europ general germani particular surpris bad pollut sort negat effect learn -0.0333333333333333 0.5375
5 vaccin help season chang pollut effect kid qualiti index get wors swasthimmunis 0.0 0.0
6 icymi improv access meaning work black resid uncov earli insight health effect airpollut read recent develop urbanhealth program -0.08333333333333333 0.3416666666666667
7 trump administr think ignor pollut exist peopl world feel effect right climatecrisi airpollut 0.2857142857142857 0.5357142857142857
8 studi show effect pollut child mental health -0.1 0.2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import twitter
api = twitter.Api(consumer_key='',
consumer_secret='',
access_token_key='',
access_token_secret='')
#create the extra columns
t['createdOn'] = None
t['isVerified'] = None
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// OS Assignment-1 Copyright@Amit_Kumar Singh Yadav - 16110011
// Question-1 Replicating cat function of UNIX Shell
#include <stdio.h> // for standard input and output- fgets, fclose, fopen
#include <stdlib.h> // for exit
#define BUFFER_SIZE 1000 //Buffer size=1000 characters
int main (int argc, char *argv[]) // argc: number of arguments including first argument as file name itself
{
@rishi-a
rishi-a / latexify.py
Created September 13, 2019 16:48
LaTeXify Plots For Publication
#Original Author: Prof. Nipun Batra
# nipunbatra.github.io
from math import sqrt
import matplotlib
SPINE_COLOR = 'gray'
def latexify(fig_width=None, fig_height=None, columns=1):
"""Set up matplotlib's RC params for LaTeX plotting.
Call this before plotting a figure.
Parameters