TabPFN commited on
Commit
dd184ef
·
1 Parent(s): 6c53143

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ def compute(table: np.array):
19
  table = table[non_empty_row_mask]
20
  empty_mask = table == '(predict)'
21
  empty_inds = np.where(empty_mask)
22
- if len(table.index) > 1024:
23
  return "⚠️ **ERROR: TabPFN is not made for datasets with a trainingsize > 1024.**", None, None
24
- if len(table.columns) > 100:
25
  return "⚠️ **ERROR: TabPFN is not made for datasets with a feature size > 100.**", None, None
26
  if not len(empty_inds[0]):
27
  return "⚠️ **ERROR: Please leave at least one field blank for prediction.**", None, None
 
19
  table = table[non_empty_row_mask]
20
  empty_mask = table == '(predict)'
21
  empty_inds = np.where(empty_mask)
22
+ if table.shape[0] > 1024:
23
  return "⚠️ **ERROR: TabPFN is not made for datasets with a trainingsize > 1024.**", None, None
24
+ if table.shape[1] > 100:
25
  return "⚠️ **ERROR: TabPFN is not made for datasets with a feature size > 100.**", None, None
26
  if not len(empty_inds[0]):
27
  return "⚠️ **ERROR: Please leave at least one field blank for prediction.**", None, None