()
| 182 | |
| 183 | |
| 184 | def main(): |
| 185 | # step 1: get the data and define all the usual variables |
| 186 | Xtrain, Xtest, Ytrain, Ytest = get_normalized_data() |
| 187 | |
| 188 | ann = ANN([500, 300]) |
| 189 | |
| 190 | session = tf.InteractiveSession() |
| 191 | ann.set_session(session) |
| 192 | |
| 193 | ann.fit(Xtrain, Ytrain, Xtest, Ytest, show_fig=True) |
| 194 | |
| 195 | print("Train accuracy:", ann.score(Xtrain, Ytrain)) |
| 196 | print("Test accuracy:", ann.score(Xtest, Ytest)) |
| 197 | |
| 198 | |
| 199 | if __name__ == '__main__': |
no test coverage detected