update
This commit is contained in:
parent
09b477c5a4
commit
670ac37c3f
@ -16,7 +16,7 @@ with open("train/in.tsv") as f:
|
||||
model = Word2Vec(X_train, min_count=1,size= 50,workers=3, window =3, sg = 1)
|
||||
X_train=model[X_train]
|
||||
X=model[X]
|
||||
FEAUTERES=10000
|
||||
FEAUTERES=1000
|
||||
class NeuralNetworkModel(torch.nn.Module):
|
||||
|
||||
def __init__(self):
|
||||
@ -60,7 +60,7 @@ for epoch in range(10):
|
||||
|
||||
|
||||
loss_score += loss.item() * Y.shape[0]
|
||||
with open('test-A/out1.tsv', 'w') as file:
|
||||
with open('test-A/out.tsv', 'w') as file:
|
||||
for e in Y_predictions:
|
||||
file.write("%f\n" % e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user