Skip to content

Commit ac5f551

Browse files
committed
add instructions
1 parent 67b127b commit ac5f551

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
install:
22
# Used with conda 4.13.0
33
conda config --append channels conda-forge
4-
conda env update -n machine-learning-book --file environment.yml --prune
4+
conda env update -n pyml-book --file environment.yml --prune
55
create:
66
# Required to remove old dependencies due to broken prune after conda 4.4
77
# https://github.com/conda/conda/issues/7279

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,18 @@ Sebastian Raschka, Yuxi (Hayden) Liu, and Vahid Mirjalili. *Machine Learning wit
6565
title = {{Machine Learning with PyTorch and Scikit-Learn}},
6666
year = {2022}
6767
}
68-
69-
68+
69+
70+
71+
## Coding Environment
72+
73+
74+
75+
Please see the [ch01/README.md](ch01/README.md) file for setup recommendations.
76+
77+
78+
79+
7080
## Translations into other Languages
7181

7282
- Serbian Translation: [Mašinsko učenje uz PyTorch i Scikit-Learn](https://knjige.kombib.rs/masinsko-ucenje-uz-pytorch-i-scikit-learn).

ch01/README.md

+18-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@ Python Machine Learning - Code Examples
88

99

1010

11-
## Setting Up Your Python Environment
11+
## For Existing Conda Users: Creating a New Conda Environment (Optional)
12+
13+
14+
15+
If you are already a conda user, you can skip the next section and get all the recommended package versions in a fresh conda environment (called "pyml-book") via
16+
17+
18+
```
19+
make -f Makefile
20+
```
21+
22+
23+
24+
## Setting Up Your Python Environment (Manually)
1225

1326
This chapter does not contain any code examples, but we recommend you to set up and check your Python before your proceed with the next chapters.
1427

@@ -21,13 +34,13 @@ For more detailed setup instructions, please refer to the section ***Installing
2134
If you are using conda (we recommend installing conda via [Miniforge](https://github.com/conda-forge/miniforge)), you can create a new environment as follows:
2235

2336
```bash
24-
conda create -n "pyml" python=3.9 numpy=1.21.2 scipy=1.7.0 scikit-learn=1.0 matplotlib=3.4.3 pandas=1.3.2
37+
conda create -n "pyml-book" python=3.9 numpy=1.21.2 scipy=1.7.0 scikit-learn=1.0 matplotlib=3.4.3 pandas=1.3.2
2538
```
2639

2740
After creating this environment, you can activate it via
2841

2942
```bash
30-
conda activate "pyml"
43+
conda activate "pyml-book"
3144
```
3245

3346

@@ -46,8 +59,8 @@ You can create a new virtual environment with a specific Python version using [v
4659
```bash
4760
pip install virtualenv
4861
cd /path/to/where/you/want/your/environment
49-
virtualenv pyml
50-
source pyml/bin/activate
62+
virtualenv pyml-book
63+
source pyml-book/bin/activate
5164
```
5265

5366
After activating your environment, you can install the required packages via

0 commit comments

Comments
 (0)