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