naszilla / tabzilla

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hopular dimensions issue

duncanmcelfresh opened this issue · comments

bug in the function Hopular.write_dataframe (this is our function, not from the hopular code). this is an issue with array dimensions - traceback below

Traceback (most recent call last):
  File "/home/shared/tabzilla/TabSurvey/tabzilla_experiment.py", line 137, in __call__
    result = cross_validation(model, self.dataset, self.time_limit)
  File "/home/shared/tabzilla/TabSurvey/tabzilla_utils.py", line 237, in cross_validation
    loss_history, val_loss_history = curr_model.fit(
  File "/home/shared/tabzilla/TabSurvey/models/hopular_model.py", line 49, in fit
    self.write_dataframe(X, y, X_val, y_val)
  File "/home/shared/tabzilla/TabSurvey/models/hopular_model.py", line 35, in write_dataframe
    train_split = np.ones(X.shape[0]) + np.zeros(X_val.shape[0])
ValueError: operands could not be broadcast together with shapes (292,) (37,) 

resolved. but there are many... other bugs in the hopular implementation