Skip to content

Instantly share code, notes, and snippets.

View mmerce's full-sized avatar
💭
Maintaining BigML bindings

Mercè Martín-Prats mmerce

💭
Maintaining BigML bindings
View GitHub Profile
@mmerce
mmerce / list_sources.py
Created March 6, 2014 11:20
While loop to list the BigML sources created from a date on using the python bindings
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 / min_features.sh
Last active August 29, 2015 14:00
bigmler analyze --features
bigmler analyze --features \
--dataset dataset/535f5ecc37203f272e0001b4
@mmerce
mmerce / features_args.sh
Last active August 29, 2015 14:00
bigmler analyze --features  --dataset dataset/535f5ecc37203f272e0001b4 --penalty 0.002 --staleness 3 --k-folds 2
bigmler analyze --features \
 --dataset dataset/535f5ecc37203f272e0001b4 \
--penalty 0.002 --staleness 3 --k-folds 2
@mmerce
mmerce / features_parallel.sh
Last active August 29, 2015 14:00
bigmler analyze –features –dataset dataset/535f5ecc37203f272e0001b4 –k-folds 2 –max-parallel-models 2 –max-parallel-evaluations 2
bigmler analyze --features \
--dataset dataset/535f5ecc37203f272e0001b4 \
--k-folds 2 --max-parallel-models 2 \
--max-parallel-evaluations 2
@mmerce
mmerce / features_maximize.sh
Created April 30, 2014 05:53
bigmler analyze --features  --dataset dataset/535f5ecc37203f272e0001b4 --maximize recall
bigmler analyze --features \
 --dataset dataset/535f5ecc37203f272e0001b4 \
--maximize recall
@mmerce
mmerce / min_nodes.sh
Last active August 29, 2015 14:00
bigmler analyze –nodes –dataset dataset/535f5ecc37203f272e0001b4
bigmler analyze --nodes \
--dataset dataset/535f5ecc37203f272e0001b4
@mmerce
mmerce / nodes_full_fledged.sh
Last active August 29, 2015 14:00
bigmler --analyze --nodes --min-nodes 5 --max-nodes 25 --nodes-step 5 -k-folds 2 -maximize phi
bigmler analyze --nodes \
--dataset dataset/535f5ecc37203f272e0001b4 \
--min-nodes 5 --max-nodes 25 --nodes-step 5 \
--k-folds 2 --maximize phi
@mmerce
mmerce / bigmler_kfold.sh
Last active August 29, 2015 14:00
bigmler analyze --dataset dataset/536653050af5e86d9c01549e --cross-validation --k-folds 3
bigmler analyze --dataset dataset/536653050af5e86d9c01549e \
--cross-validation --k-folds 3
@mmerce
mmerce / README.md
Last active August 29, 2015 14:04
node.js example to predict from a csv file

Node.js example: local predictions

Using the node.js bindings and its local model object to predict from a csv file.

Usage:

cat input.csv | node act_model.js > predictions.csv
@mmerce
mmerce / README.md
Last active October 16, 2023 09:20
python example to predict from a csv file

Python example: local predictions

Using the python bindings and its local model object to predict from a csv file.

Usage:

cat input.csv | python act_model.js > predictions.csv