Skip to content

Commit d28710d

Browse files
Update README.md
1 parent 82758b9 commit d28710d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ yt = 0.2 * Xt[:, 0]
7171

7272
# With lambda set to zero, no adaptation is performed.
7373
model = DANN(lambda_=0., random_state=0)
74-
model.fit(Xs, ys, Xt, yt, epochs=100, verbose=0)
75-
print(model.history_["task_t"][-1]) # This gives the target score at the last training epoch.
76-
>>> 0.0240
74+
model.fit(Xs, ys, Xt=Xt, epochs=100, verbose=0)
75+
print(model.evaluate(Xt, yt)) # This gives the target score at the last training epoch.
76+
>>> 0.0231
7777

7878
# With lambda set to 0.1, the shift is corrected, the target score is then improved.
7979
model = DANN(lambda_=0.1, random_state=0)
80-
model.fit(Xs, ys, Xt, yt, epochs=100, verbose=0)
81-
print(model.history_["task_t"][-1])
82-
>>> 0.0022
80+
model.fit(Xs, ys, Xt=Xt, epochs=100, verbose=0)
81+
model.evaluate(Xt, yt)
82+
>>> 0.0011
8383
```
8484

8585
## Examples

0 commit comments

Comments
 (0)