> For the complete documentation index, see [llms.txt](https://alvintoh.gitbook.io/machine-learning-a-z-hands-on-python-r-in-data-sci/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alvintoh.gitbook.io/machine-learning-a-z-hands-on-python-r-in-data-sci/section-2-part-1-data-preprocessing/15.-warning-update.md).

# 15. WARNING - Update

## Instructor Notes

Dear students,

in the following tutorial, the first line of code we will type will be:

```
    from sklearn.cross_validation import train_test_split
```

However the "cross\_validation" name is now deprecated and was replaced by "model\_selection" inside the new anaconda versions.

Therefore you might get a warning or even an error if you run this line of code above.

To avoid this, you just need to replace:

```
    from sklearn.cross_validation import train_test_split
```

by

```
    from sklearn.model_selection import train_test_split
```

and you will get no warning ;)

Hope you are having a great ML journey so far, I'll see you in the next tutorial.

Hadelin
