Skip to content

Instantly share code, notes, and snippets.

View wowitsmrinal's full-sized avatar

Mrinal Mohit wowitsmrinal

View GitHub Profile
# Replace "USERNAME" and "PASSWORD" with your AIS username and password
# Install dependencies before running: pip install selenium webdriver-manager
# Run with python mexico.py
from selenium import webdriver
from selenium.common.exceptions import ElementNotInteractableException
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service as ChromeService
from selenium.webdriver.support.ui import Select
prediction target score row_index text
intent:share intent:share [-6.08595609664917, -8.649953842163086, -8.331584930419922, -4.044114112854004, -9.142791748046875, -8.200679779052734, -2.9195287227630615, -6.440942287445068, -4.8937883377075195, -7.257227420806885, -5.823069095611572, -5.278554916381836, -5.480866432189941, -3.7319586277008057, -0.12858377397060394, -8.86778736114502] 15 .share this info
intent:can_i_get_from_feces_animal_pets intent:how_does_corona_spread [-4.195789813995361, -9.2007417678833, -5.312730312347412, -17.717090606689453, -6.404790878295898, -0.13925115764141083, -3.5201544761657715, -2.680811882019043, -17.1573429107666, -4.667994022369385, -11.35520076751709, -7.758904457092285, -11.709734916687012, -17.824256896972656, -17.108049392700195, -8.084433555603027] 64 Does mosquito's have the potential to spread Coronavirus?
intent:donate intent:donate [-8.211530685424805, -15.59325885772705, -10.399077415466309, -12.084761619567871, -12.988932609558105, -9.800759315490723, -11.91
Stage.TEST
Epoch:1
loss: 0.979873
Accuracy: 76.32
Soft Metrics:
+-----------------------------------------+-------------------+---------+
| Label | Average precision | ROC AUC |
+-----------------------------------------+-------------------+---------+
| intent:can_i_get_from_feces_animal_pets | 0.737 | 0.904 |
Stage.TRAIN
Epoch:60
loss: 0.008522
Accuracy: 99.77
Soft Metrics:
+-----------------------------------------+-------------------+---------+
| Label | Average precision | ROC AUC |
+-----------------------------------------+-------------------+---------+
| intent:can_i_get_from_feces_animal_pets | 1.000 | 1.000 |
@wowitsmrinal
wowitsmrinal / pathcost.cpp
Created January 16, 2013 11:14
Path Costs
//The getMat function returns the adjacency matrix containing the weighted distances between all locations, augmented with the booty of visiting the city
#define IMGDATA(img,i,j,k) (((uchar *)img->imageData)[i*(img->widthStep) + j*(img->nChannels) + k])
typedef struct node{
int val;
struct node *next;
}stacknode;
typedef stacknode* nodePtr;
nodePtr head; nodePtr tail;
@wowitsmrinal
wowitsmrinal / houghcircle.h
Created January 16, 2013 05:31
HoughCircle
//This is a header file that allows the detection of a circle using Hough Transform
#ifndef HOUGHCIRCLE_H
#define HOUGHCIRCLE_H
#include <stdio.h>
#include <highgui/highgui.hpp>
#include <queue>
#include <vector>
#ifndef IMGDATA
#define IMGDATA(image,i,j,k) ((image->imageData)[(i)*(image->widthStep) + (j)*(image->nChannels) + (k)])
#endif
@wowitsmrinal
wowitsmrinal / contours.cpp
Last active December 11, 2015 04:28
Contours
#include "stdafx.h"
#include <stdio.h>
#include <highgui.h>
#include <cv.h>
#include <cxcore.h>
#define IMGDATA(img,i,j,k) (((uchar *)img->imageData)[i*(img->widthStep) + j*(img->nChannels) + k])
int mx=0, my=0, clicked=0; //Global variables to store image co-ordinates and the flag to check
@wowitsmrinal
wowitsmrinal / lane_following.cpp
Created January 16, 2013 05:23
Lane Following
#include "stdafx.h"
#include <stdio.h>
#include <highgui.h>
#include <cv.h>
#include <cxcore.h>
#include <stdlib.h>
#include <math.h>
#include "tserial.h"
#include "bot_control.h"
8
10
#66FF00 X15
#CC0000 X10
#99FFCC X2
#FFCC99 X3
#FF00FF X5
#FF99FF X20
#4093BD X10
#FFFF33 X10
7
8
#0033CC X10
#336600 X10
#CC3300 X10
#66FFFF X2
#CC0099 X3
#CCCC00 X1
#999999 X10
D: 5.00