From 831618d6270528d421bb72186bbae6a2fb52bd7e Mon Sep 17 00:00:00 2001 From: Alexander Amini Date: Mon, 8 Jan 2024 00:12:22 -0500 Subject: [PATCH] adding comment --- mitdeeplearning/lab1.py | 1 + setup.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mitdeeplearning/lab1.py b/mitdeeplearning/lab1.py index c771a88b..7e2d9fcd 100644 --- a/mitdeeplearning/lab1.py +++ b/mitdeeplearning/lab1.py @@ -80,6 +80,7 @@ def test_batch_func_next_step(func, args): return True def test_custom_dense_layer_output(y): + # define the ground truth value true_y = np.array([[0.27064407 0.1826951 0.50374055]],dtype='float32') assert tf.shape(y).numpy().tolist() == list(true_y.shape), "[FAIL] output is of incorrect shape. expected {} but got {}".format(true_y.shape, y.numpy().shape) np.testing.assert_almost_equal(y.numpy(), true_y, decimal=7, err_msg="[FAIL] output is of incorrect value. expected {} but got {}".format(true_y, y.numpy()), verbose=True) diff --git a/setup.py b/setup.py index ec83ddf1..aff2d6f3 100644 --- a/setup.py +++ b/setup.py @@ -22,13 +22,13 @@ def get_dist(pkgname): setup( name = 'mitdeeplearning', # How you named your package folder (MyLib) packages = ['mitdeeplearning'], # Chose the same as "name" - version = '0.4.3', # Start with a small number and increase it with every change you make + version = '0.5.4', # Start with a small number and increase it with every change you make license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library author = 'Alexander Amini', # Type in your name author_email = 'introtodeeplearning-staff@mit.edu', # Type in your E-Mail url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website - download_url = 'https://github.com/aamini/introtodeeplearning/archive/v0.4.3.tar.gz', # I explain this later on + download_url = 'https://github.com/aamini/introtodeeplearning/archive/v0.5.4.tar.gz', # I explain this later on keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best install_requires=install_deps, classifiers=[