matroid / matroid/dlwithtf

Type mismatch in ch4/fcnet_classification_tf.py

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
322
Forks
155
PR merge metrics
No merged PRs in 30d

Description

```
Traceback (most recent call last):
File "fcnet_classification_tf.py", line 17, in
y_zeros = np.zeros((N/2,))
TypeError: 'float' object cannot be interpreted as an integer
```
and in other lines. To correct, `sed -i 's|N/2|N//2|g' ch4/fcnet_classification_tf.py`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ch4/fcnet_classification_tf.py and the traceback at line 17, then inspect the other N/2 occurrences mentioned in the issue. Run the script after the correction and confirm it no longer raises the reported integer-type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.