Reified resource: source/5be37c142774cb26da000636

Remember to set your credentials in the BIGML_USERNAME and BIGML_API_KEY environment variables.


In [ ]:
from bigml.api import BigML
api = BigML()

Add the inputs for the workflow


In [ ]:
source1_file = "iris.csv"


Step 1
Python for resource: my_source_name
(5 fields (1 categorical, 4 numeric))
source/5be37c142774cb26da000636
created by mmartin


In [ ]:
args = \
    {'fields': {'000000': {'name': 'sepal length', 'optype': 'numeric'},
                '000001': {'name': 'sepal width', 'optype': 'numeric'},
                '000002': {'name': 'petal length', 'optype': 'numeric'},
                '000003': {'name': 'petal width', 'optype': 'numeric'},
                '000004': {'name': 'species',
                           'optype': 'categorical',
                           'term_analysis': {'enabled': True}}},
     }

In [ ]:
source2 = api.create_source(source1_file, args)
api.ok(source2)