Skip to content

Instantly share code, notes, and snippets.


Amit Kumar Jaiswal amitkumarj441

View GitHub Profile
amitkumarj441 /
Last active Oct 14, 2020
Pinterest Food Images Dataset for Recommendation Task

Pinterest Image Dataset

We crawled the Pinterest dataset and is collected from for content-based image recommendation task. The dataset consist of image samples of two food categories, namely, Spaghetti Bolognese and Zoodles.

However, due to the data sharing policy of Pinterest, we share only tiny samples of the actual collected dataset and its label.

The link below is a sample of images from Zoodle category with corresponding labels/Pins.

  1. Zoodle category labels (from Image Recommendation):
  2. Zoodle Image Category labelled data:
View qkd.txt
View bgrahm.txt
View xgb_lgb_log.txt
For LGBM on F1 set
working fold 0
fold 0
Training until validation scores don't improve for 200 rounds.
[1000] training's l1: 2.13847 valid_1's l1: 2.31434
[2000] training's l1: 1.81812 valid_1's l1: 1.90579
[3000] training's l1: 1.60539 valid_1's l1: 1.73527
[4000] training's l1: 1.43323 valid_1's l1: 1.64906
[5000] training's l1: 1.28761 valid_1's l1: 1.58606
amitkumarj441 / h2o.txt
Last active Dec 15, 2018
Spin H2O 🚀
View h2o.txt
ith@ith-ThinkPad-W520:~$ pip install h2o
Collecting h2o
Downloading (120.6MB)
100% |████████████████████████████████| 120.6MB 344kB/s
Requirement already satisfied: requests in ./anaconda3/lib/python3.6/site-packages (from h2o) (2.11.1)
Collecting tabulate (from h2o)
Downloading (45kB)
100% |████████████████████████████████| 51kB 5.3MB/s
Requirement already satisfied: future in ./anaconda3/lib/python3.6/site-packages (from h2o) (0.16.0)
View contract.txt
ith@ith-ThinkPad-W520:~/Practice/BCP2P$ truffle compile
Compiling ./contracts/Admin.sol...
Compiling ./contracts/FlightInsurance.sol...
Compiling ./contracts/FlightInterface.sol...
Compiling ./contracts/InsuranceInterface.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/OraclizeTest.sol...
Compiling installed_contracts/SafeMath.sol...
Compiling installed_contracts/StringUtils.sol...
amitkumarj441 / gist:f4e2cee2b389a711fd8b4be94e93aa16
Created Jul 15, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:f4e2cee2b389a711fd8b4be94e93aa16


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
amitkumarj441 /
Last active Jul 14, 2018
Named entity recognition stuffs

CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition

The CoNLL-2003 (Sang et al. 2003) shared task deals with language-independent named entity recognition as well (English and German).


The CoNLL-2003 shared task data files contain four columns separated by a single space. Each word has been put on a separate line and there is an empty line after each sentence. The first item on each line is a word, the second a part-of-speech (POS) tag, the third a syntactic chunk tag and the fourth the named entity tag. The chunk tags and the named entity tags have the format I-TYPE which means that the word is inside a phrase of type TYPE. Only if two phrases of the same type immediately follow each other, the first word of the second phrase will have tag B-TYPE to show that it starts a new phrase. A word with tag O is not part of a phrase.

The English data is a collection of news wire articles from the Reuters Corpus. The annotation has been done

View lsa_log.txt
ith@ith-ThinkPad-W520:~$ ssh -i /home/ith/Downloads/cloud_mining.pem ubuntu@
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:Q4iQXcdjrdt3YKd9A8zhBz3cpEkw9rAgjSJcnkZ2dRs.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1052-aws x86_64)
* Documentation:
* Management:
* Support:
amitkumarj441 /
Created Jan 28, 2018
Make vyper easy
from web3 import Web3, HTTPProvider
from viper import compiler
from web3.contract import ConciseContract
from time import sleep
example_contract = open('./path/to/', 'r')
contract_code =
cmp = compiler.Compiler()