Skip to content

Instantly share code, notes, and snippets.

View antonifs's full-sized avatar

Antoni F. Setiawan antonifs

  • -
  • Jakarta
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antonifs
antonifs / gist:57a42a678756a0b43657856790b3323f
Last active September 21, 2017 20:57
Recommendation Engine for Product Cross Selling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antonifs
antonifs / gist:d2a1f5513cc4420353557130ad406a39
Last active September 27, 2017 11:50
Pasarpolis Vehicle APIs

N|Solid

APIs of Motor and Vehicle

URLS

production

https://apis.pasarpolis.com
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# ## Agenda
#
# 1. Reading in the Kaggle data and adding features
# 2. Using a **`Pipeline`** for proper cross-validation
# 3. Combining **`GridSearchCV`** with **`Pipeline`**
# 4. Efficiently searching for tuning parameters using **`RandomizedSearchCV`**
# 5. Adding features to a document-term matrix (using SciPy)
# 6. Adding features to a document-term matrix (using **`FeatureUnion`**)
# 7. Ensembling models
# 8. Locating groups of similar cuisines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antonifs
antonifs / instagram_scraper.py
Created October 12, 2016 09:33
Instagram Scraper. User profile and media posts
import csv, json, os, os.path, re, string, urllib2
from bs4 import BeautifulSoup
# config and params
protocol = 'https://www.'
domain = 'instagram.com/'
username = 'selenagomez'
site = protocol + domain + username
# tag identifier of which content will be graped