<jupyter_start><jupyter_text>Paris Saclay Center for Data Science Test RAMP on iris  <NAME> (LAL/CNRS)  IntroductionIris is a small standard multi-class classification data set from the UCI Machine Learning Repository.<jupyter_code>%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns; sns.set()<jupyter_output><empty_output><jupyter_text>Fetch the data and load it in pandas<jupyter_code>local_filename = 'data/train.csv'

# Open file and print the first 3 lines
with open(local_filename) as fid:
    for line in fid.readlines()[:3]:
        print(line)
data = pd.read_csv(local_filename)
data.head()
data.shape
data.describe()
data.hist(figsize=(10, 10), bins=50, layout=(3, 2));
sns.pairplot(data);<jupyter_output><empty_output><jupyter_text>Local testing (before submission)It is important that you test your submission files before submitting them. For this we provide a unit test. Note that the test runs on your files in [`submissions/starting_kit`](http://localhost:8890/tree/submissions/starting_kit).First `pip install ramp-workflow` or install it from the [github repo](https://github.com/paris-saclay-cds/ramp-workflow). Make sure that the python file `classifier.py` is in the  [`submissions/starting_kit`](http://localhost:8890/tree/submissions/starting_kit) folder, and the data `train.csv` and `test.csv` are in [`data`](http://localhost:8890/tree/data). Then run```ramp_test_submission```If it runs and print training and test errors on each fold, then you can submit the code.<jupyter_code>!ramp_test_submission<jupyter_output><empty_output><jupyter_text>Alternatively, load and execute `rampwf.utils.testing.py`, and call `assert_submission`. This may be useful if you would like to understand how we instantiate the workflow, the scores, the data connectors, and the cross validation scheme defined in [`problem.py`](problem.py), and how we insert and train/test your submission.<jupyter_code># %load https://raw.githubusercontent.com/paris-saclay-cds/ramp-workflow/master/rampwf/utils/testing.py
# assert_submission()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10390220968500236, 'fraction_numerical': 0.010343206393982134, 'mean_word_length': 6.140939597315437, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '249895', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 692, 'n_tokens_neox': 656, 'n_words': 208, 'path': 'rampwf/tests/kits/iris_old/iris_old_starting_kit.ipynb', 'repo_name': 'DimitriPapadopoulos/ramp-workflow', 'size': '2132'}