Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Maintaining BigML bindings

mmerce

💭
Maintaining BigML bindings
View GitHub Profile
@mmerce
mmerce / Recruiting_1.sh
Last active Aug 29, 2015
BigMLer basic command for multi-label predictor features
View Recruiting_1.sh
bigmler --multi-label --name Recruiting_Multilabel \
--train multi_label_recruiting.csv \
--multi-label-fields Titles,Languages,Skills \
--objective Titles --label-separator :
View multi_label_recruiting.txt
ID,Name,Age,Gender,Marital Status,Certifications,Recommendations,Courses,Titles,Languages,Skills
1,Fannie Dais,51,Female,Widowed,5,10,3,Student:Manager,French:English,Software Engineering Management:Recruiting:JSON:Perl/Python/Ruby:Oracle:Database Management and Software:Business Development/Relationship Management
2,Isaias Stoodley,47,Male,Divorced,5,10,6,Manager:CEO,English:German:Italian,MongoDB:Recruiting:Software Engineering Management:Business Intelligence:Linux:Oracle
3,Mari Gramling,19,Male,Married,0,0,0,Student,French,MongoDB:JSON:Web programming
4,Barrie Murakami,45,Male,Divorced,1,5,3,Engineer,German:English,Windows:MongoDB:Algorithm Design:MySQL:Linux
@mmerce
mmerce / Recruiting_2.sh
Last active Aug 29, 2015
BigMLer advanced command for multi-label predictor features
View Recruiting_2.sh
bigmler --multi-label --name Recruiting_Multilabel \
--train multi_label_recruiting.csv \
--multi-label-fields Titles,Languages,Skills \
--objective Titles --label-separator : \
--label-aggregate count,last
@mmerce
mmerce / Recruiting_4.sh
Last active Aug 29, 2015
BigMLer multi-label predictions
View Recruiting_4.sh
bigmler --model-tag multi-label-recruiting \
--test new_profiles.csv --method combined
@mmerce
mmerce / index.html
Last active Aug 29, 2015
Recruiting example: Student model sunburst
View index.html
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="bigml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="en" />
</head>
<body>
<iframe src="https://bigml.com/embedded/model/eeryQD2GindI7uhR4UyNG4PHbp6" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" width="600" height="400"></iframe>
</body>
</html>
@mmerce
mmerce / index.html
Last active Aug 29, 2015
Recruiting example: Engineer model sunburst
View index.html
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="bigml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="en" />
</head>
<body>
<iframe src="https://bigml.com/embedded/model/6vG71e7EX8eOqmFDhHURx0PJTkF" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" width="600" height="400"></iframe>
</body>
</html>
@mmerce
mmerce / index.html
Last active Aug 29, 2015
Recruiting example: Manager model sunburst
View index.html
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="bigml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="en" />
</head>
<body>
<iframe src="https://bigml.com/embedded/model/xpL73L7M8E02OLazWYMf6PB6ppi" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" width="600" height="400"></iframe>
</body>
</html>
@mmerce
mmerce / index.html
Last active Aug 29, 2015
Recruiting example: CEO model sunburst
View index.html
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="bigml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="en" />
</head>
<body>
<iframe src="https://bigml.com/embedded/model/1k8vnjNALPxul12HsqIfYRWOFBE" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" width="600" height="400"></iframe>
</body>
</html>
@mmerce
mmerce / list_sources.py
Created Mar 6, 2014
While loop to list the BigML sources created from a date on using the python bindings
View list_sources.py
from bigml.api import BigML, FINISHED
api = BigML()
DATE = '2013-10-05T00:25:36.973000'
PAGE_LENGTH = 20 # number of resources to be retrieved in one list call
# q_w: query_string with the query parameters. In this case, creation data and
# maximum number of resources to be returned.
QUERY_STRING = "created__gte=%s" % DATE
# api_function: function that should be used to retrieve the resources. In this
# case we use the list_sources call to retrieve sources. We could use any
@mmerce
mmerce / features_parallel.sh
Last active Aug 29, 2015
bigmler analyze –features –dataset dataset/535f5ecc37203f272e0001b4 –k-folds 2 –max-parallel-models 2 –max-parallel-evaluations 2
View features_parallel.sh
bigmler analyze --features \
--dataset dataset/535f5ecc37203f272e0001b4 \
--k-folds 2 --max-parallel-models 2 \
--max-parallel-evaluations 2