Brainome accepts CSV files from many sources
This notebook assumes brainome is installed as per notebook brainome_101_Quick_Start
!python3 -m pip install brainome -quiet
!brainome -version
Brainome defaults to reading data files from the current directory.
In this example, we download cancer.csv to the local file system before using it.
import urllib.request as request
response1 = request.urlretrieve('https://download.brainome.ai/data/public/cancer.csv', 'cancer.csv')
print("Downloaded cancer.csv to local file system")
%ls -lh cancer.csv
print("\nRunning brainome")
!brainome cancer.csv -y -o predictor_105_local.py | grep -A 6 "Data:"
Brainome can download a CSV data set from an HTTP URL.
In this example, we use titanic_train.csv
!brainome https://download.brainome.ai/data/public/titanic_train.csv -y -o predictor_105_http.py | grep -A 6 "Data:"
Brainome can stream a compressed data set.
In this example, we use titanic_compressed.csv.gz
!brainome https://download.brainome.ai/data/public/titanic_compressed.csv.gz -y -o predictor_105_gz.py | grep -A 6 "Data:"
Brainome can accept multiple data sets. They need to all have the same columns.
In this example, we use vehicle.csv, vehicle_A.csv.gz, and vehicle_B.csv.gz
!brainome https://download.brainome.ai/data/public/vehicle.csv https://download.brainome.ai/data/public/vehicle_A.csv.gz https://download.brainome.ai/data/public/vehicle_B.csv.gz -y -o predictor_105_multi.py | grep -A 6 "Data:"