add grid search
This commit is contained in:
parent
835213ab1b
commit
14001cf80d
2
main.py
2
main.py
@ -658,7 +658,7 @@ if __name__ == "__main__":
|
||||
|
||||
grid = GridSearchCV(estimator=estimator, param_grid=paramsGrid, n_jobs=-1, cv=3, scoring=torch.nn.BCELoss)
|
||||
data = np.array(model.triples['train'])
|
||||
data = data[np.random.choice(np.arange(len(data)), size=int(len(data) * 0.2), replace=False)]
|
||||
data = data[np.random.choice(np.arange(len(data)), size=int(len(data) * 0.15), replace=False)]
|
||||
dataloader = iter(DataLoader(
|
||||
TrainDataset(data, model.p),
|
||||
batch_size=len(data),
|
||||
|
Loading…
Reference in New Issue
Block a user