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 / top-n-dataset.json
Last active November 2, 2018 08:41
Creating dataset with top-n features of a model
{
"name": "Top n features dataset from model",
"description": "It creates a dataset that includes the top n features as detected by a model",
"inputs": [
{
"name": "model-id",
"type": "model-id",
"description": "Model that selects the features"
},
{
@mmerce
mmerce / model-evaluate.json
Created September 13, 2018 22:24
model & evaluate
{
"name": "Model and Evaluate",
"description": "It creates an evaluation from an 80/20% split",
"inputs": [
{
"name": "dataset-id",
"type": "dataset-id",
"description": "Dataset to be modeled"
}
],
@mmerce
mmerce / model-evaluate.json
Created September 13, 2018 22:24
model & evaluate
{
"name": "Model and Evaluate",
"description": "It creates an evaluation from an 80/20% split",
"inputs": [
{
"name": "dataset-id",
"type": "dataset-id",
"description": "Dataset to be modeled"
}
],
@mmerce
mmerce / 1-click-batchprediction.json
Last active July 23, 2018 14:54
1-click batch prediction with fusion
{
"name": "1-click batch prediction from fusion",
"description": "This script creates a batch prediction from a user-given source and fusion ID",
"inputs": [
{
"default": "",
"description": "Source for inputs",
"name": "test-source",
"type": "source-id"
},
@mmerce
mmerce / clean_anomaly.js
Created June 21, 2018 08:48
Creating a clean anomaly detector
/*
* Creating a clean anomaly detector
*/
var bigml = require('bigml');
// Simplest anomaly detector
new bigml.Source().create('sales.csv', undefined, function(error, source) {
new bigml.Dataset().create(source, undefined, function(error, dataset) {
new bigml.Anomaly().create(dataset, undefined, function(error, anomaly) {
@mmerce
mmerce / move_to_project.json
Last active April 1, 2019 19:54
Moving from one project to another
{"name": "Move from projects to project",
"description": "Moves the non-script resources from a list of existing projects to a single destination project",
"inputs": [
{
"default": "",
"description": "Destination project ID",
"name": "destination",
"type": "project-id"
},
{
@mmerce
mmerce / bigmler_model.sh
Last active January 16, 2018 23:11
Basic BigMLer model command
bigmler --train data/diabetes_sample.csv \
--tag best_diabetes
--output-dir ./initial_model
@mmerce
mmerce / bigmler_retrain_id.sh
Created January 16, 2018 00:52
Post example: bigmler retrain by ID
bigmler retrain --add diabetes_new_data.csv \
--id cluster/5a186f1d92527304c200077b \
--output-dir accumulative_cluster
bigmler retrain --add diabetes_12.csv \
--window-size 3 \
--ensemble-tag best_diabetes \
--output-dir windowed_retrain
@mmerce
mmerce / retrain_add.sh
Created January 16, 2018 00:36
BigMLer retrain: add data
bigmler retrain --add diabetes_new_data.csv \
--model-tag best_diabetes \
--output-dir accumulative_retrain