Skip to content

Commit 112e04f

Browse files
committed
labels to float
1 parent a378068 commit 112e04f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

lab2/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

lab2/util.py

Whitespace-only changes.

mitdeeplearning/lab2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, data_path):
5252
print ("Loading data into memory...")
5353
sys.stdout.flush()
5454
self.images = self.cache['images'][:]
55-
self.labels = self.cache['labels'][:]
55+
self.labels = self.cache['labels'][:].astype(np.float32)
5656
self.image_dims = self.images.shape
5757
n_train_samples = self.image_dims[0]
5858

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def get_dist(pkgname):
2121
setup(
2222
name = 'mitdeeplearning', # How you named your package folder (MyLib)
2323
packages = ['mitdeeplearning'], # Chose the same as "name"
24-
version = '0.4.3', # Start with a small number and increase it with every change you make
24+
version = '0.4.4', # Start with a small number and increase it with every change you make
2525
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
2626
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library
2727
author = 'Alexander Amini', # Type in your name
2828
author_email = '[email protected]', # Type in your E-Mail
2929
url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website
30-
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.4.3.tar.gz', # I explain this later on
30+
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.4.4.tar.gz', # I explain this later on
3131
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best
3232
install_requires=install_deps,
3333
classifiers=[

0 commit comments

Comments
 (0)