Skip to content

Commit f402d46

Browse files
committed
modify test code
1 parent aecd5e9 commit f402d46

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.idea/workspace.xml

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

result/test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[4.984338045120239, 4.875711560249329, 4.780858218669891, 4.849339187145233, 4.910612761974335, 4.755706012248993, 4.562326073646545, 4.756882011890411,
1+
[4.984338045120239, 4.875711560249329, 4.780858218669891, 4.849339187145233, 4.910612761974335, 4.755706012248993, 4.562326073646545, 4.756882011890411, 4.543054044246674, 4.578440546989441, 4.486352324485779, 4.478677809238434, 4.586650133132935, 4.4914878606796265, 4.570768237113953, 4.580470442771912, 4.543760418891907, 4.4988667368888855, 4.461664259433746]

result/train.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[5.617368328413774, 5.063993916112421, 4.893223413811906, 4.7998555536312155, 4.7442694508556755, 4.707525814157226, 4.618371282905209, 4.527510960196609,
1+
[5.617368328413774, 5.063993916112421, 4.893223413811906, 4.7998555536312155, 4.7442694508556755, 4.707525814157226, 4.618371282905209, 4.527510960196609, 4.467339883291774, 4.4360929690793744, 4.404305972716882, 4.372550537932812, 4.352456565470423, 4.342039421266396, 4.32991591004023, 4.3047257856125345, 4.291698718386074, 4.291413096079217, 4.293526659978118]

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
def test_model(num_examples):
25-
iterator = train_iter
25+
iterator = test_iter
2626
model.load_state_dict(torch.load("./saved/model-saved.pt"))
2727
model.eval()
2828

0 commit comments

Comments
 (0)