質問編集履歴

1

書式の改善

2023/03/11 17:23

投稿

Tanhx
Tanhx

スコア11

test CHANGED
File without changes
test CHANGED
@@ -48,6 +48,10 @@
48
48
  if epoch%10==0:
49
49
  metrics = self.test()
50
50
 
51
+ def test_one_batch(X):
52
+ metrics = calc_metric(X)
53
+ return metrics
54
+
51
55
  class UniformSampling:
52
56
  def __init__(self, dataset: Loader, config, neg_ratio=1):
53
57
  ....
@@ -84,9 +88,7 @@
84
88
 
85
89
 
86
90
 
87
- def test_one_batch(X):
91
+
88
- metrics = calc_metric(X)
89
- return metrics
90
92
  ```
91
93
  コードは省略があります
92
94