Skip to content

Commit

Permalink
num_epoch should be 1 for testing input
Browse files Browse the repository at this point in the history
  • Loading branch information
feranick committed Oct 22, 2017
1 parent fce18b8 commit 3fbb01f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SpectraLearnPredict/SpectraLearnPredict/slp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* SpectraLearnPredict
* Perform Machine Learning on Spectroscopy Data.
* version: 20171021a
* version: 20171022a
*
* Uses: Deep Neural Networks, TensorFlow, SVM, PCA, K-Means
*
Expand Down
2 changes: 1 addition & 1 deletion SpectraLearnPredict/SpectraLearnPredict/slp/slp_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def trainDNNTF2(A, Cl, A_test, Cl_test, Root):
test_input_fn = tf.estimator.inputs.numpy_input_fn(
x={"x": np.array(A_test)},
y=np.array(Cl2_test),
num_epochs=None,
num_epochs=1,
shuffle=dnntfDef.shuffleTest)

validation_monitor = [skflow.monitors.ValidationMonitor(input_fn=test_input_fn,
Expand Down
2 changes: 1 addition & 1 deletion SpectraLearnPredict/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
packages=find_packages(),
install_requires=['numpy', 'matplotlib', 'pandas', 'tensorflow', 'scikit-learn'],
entry_points={'gui_scripts' : ['SpectraLearnPredict=SpectraLearnPredict.__main__:main']},
version='20171021a',
version='20171022a',
description='Machine learning for spectral data',
long_description= """ Machine learning for spectral data """,
author='Nicola Ferralis',
Expand Down

0 comments on commit 3fbb01f

Please sign in to comment.