mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 16:07:46 +00:00
fix a bug in kaggle runner cache and kaggle costeer execute template (#467)
This commit is contained in:
@@ -12,7 +12,9 @@ valid_X = pd.DataFrame(np.random.randn(8, 30), columns=[f"{i}" for i in range(30
|
||||
valid_y = pd.Series(np.random.randint(0, 2, 8))
|
||||
|
||||
model = fit(train_X, train_y, valid_X, valid_y)
|
||||
execution_model_output = predict(model, valid_X).cpu().detach().numpy()
|
||||
execution_model_output = predict(model, valid_X)
|
||||
if isinstance(execution_model_output, torch.Tensor):
|
||||
execution_model_output = execution_model_output.cpu().detach().numpy()
|
||||
|
||||
execution_feedback_str = f"Execution successful, output numpy ndarray shape: {execution_model_output.shape}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user