Skip to content

Commit 300a518

Browse files
committed
removed hard coded path
1 parent bdf7252 commit 300a518

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/deep_bayesian_active_learning.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def create_keras_model():
4444
X_initial = X_train[initial_idx]
4545
y_initial = y_train[initial_idx]
4646

47-
# generate the pool
48-
# remove the initial data from the training dataset
47+
# remove the initial data from the pool of unlabelled examples
4948
X_pool = np.delete(X_train, initial_idx, axis=0)
5049
y_pool = np.delete(y_train, initial_idx, axis=0)
5150

@@ -95,7 +94,3 @@ def uniform(learner, X, n_instances=1):
9594
model_accuracy = learner.score(X_test, y_test, verbose=0)
9695
print('Accuracy after query {n}: {acc:0.4f}'.format(n=index + 1, acc=model_accuracy))
9796
perf_hist.append(model_accuracy)
98-
99-
save_path = "/home/damien/Results/keras_modal_riashat_entropy.npy"
100-
np.save(save_path, perf_hist)
101-
print(save_path)

0 commit comments

Comments
 (0)