Skip to content

Commit bf9b3c0

Browse files
committed
update enviroment for conda, fixed all test and updated readme
1 parent 61d695b commit bf9b3c0

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@ Features from Python 3.6 and 3.7 that we will be using for this version of the c
4040

4141
## Installation Guide
4242

43+
First, make sure you have Python 3.7+ and conda installed:
44+
- [Install Python](https://www.python.org/downloads)
45+
- [Install conda](https://www.anaconda.com/docs/getting-started/miniconda/install) (Miniconda recommended)
46+
4347
To download the repository:
4448

45-
`git clone https://github.com/aimacode/aima-python.git`
49+
`git clone https://github.com/abeljim/aima-python-eecs118-fall-25.git`
4650

47-
Then you need to install the basic dependencies to run the project on your system:
51+
Then you need to create a conda environment and install the dependencies:
4852

4953
```
50-
cd aima-python
51-
pip install -r requirements.txt
54+
cd aima-python-eecs118-fall-25
55+
conda env create -f environment.yml
56+
conda activate aima-python
5257
```
5358

5459
You also need to fetch the datasets from the [`aima-data`](https://github.com/aimacode/aima-data) repository:
@@ -58,11 +63,7 @@ git submodule init
5863
git submodule update
5964
```
6065

61-
Wait for the datasets to download, it may take a while. Once they are downloaded, you need to install `pytest`, so that you can run the test suite:
62-
63-
`pip install pytest`
64-
65-
Then to run the tests:
66+
Wait for the datasets to download, it may take a while. Then to run the tests:
6667

6768
`py.test`
6869

deep_learning4e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def AutoencoderLearner(inputs, encoding_size, epochs=200, verbose=False):
575575
model.add(Dense(input_size, activation='relu', kernel_initializer='random_uniform', bias_initializer='ones'))
576576

577577
# update model with sgd
578-
sgd = optimizers.SGD(lr=0.01)
578+
sgd = optimizers.SGD(learning_rate=0.01)
579579
model.compile(loss='mean_squared_error', optimizer=sgd, metrics=['accuracy'])
580580

581581
# train the model

environment.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: aima-python
2+
channels:
3+
- defaults
4+
dependencies:
5+
- python=3.9
6+
- numpy
7+
- matplotlib
8+
- pandas
9+
- scipy
10+
- jupyter
11+
- ipython
12+
- pytest
13+
- pillow
14+
- pip
15+
- pip:
16+
- networkx
17+
- opencv-python
18+
- ipythonblocks
19+
- sortedcontainers
20+
- qpsolvers
21+
- cvxopt
22+
- keras
23+
- tensorflow

0 commit comments

Comments
 (0)