Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nanotabpfn/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
import torch
import torch.nn.functional as F
from pfns.bar_distribution import FullSupportBarDistribution
from pfns.model.bar_distribution import FullSupportBarDistribution
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
from sklearn.pipeline import Pipeline
Expand Down
2 changes: 1 addition & 1 deletion nanotabpfn/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from torch.utils.data import DataLoader
from typing import Dict
from pfns.bar_distribution import FullSupportBarDistribution
from pfns.model.bar_distribution import FullSupportBarDistribution
import schedulefree
import os

Expand Down
4 changes: 2 additions & 2 deletions nanotabpfn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
import numpy as np

from pfns.bar_distribution import get_bucket_limits
from pfns.model.bar_distribution import get_bucket_borders

def set_randomness_seed(seed):
random.seed(seed)
Expand Down Expand Up @@ -32,5 +32,5 @@ def make_global_bucket_edges(filename, n_buckets=100, device=get_default_device(
raise ValueError(f"Too few target samples ({ys_concat.size}) to compute {n_buckets} buckets.")

ys_tensor = torch.tensor(ys_concat, dtype=torch.float32, device=device)
global_bucket_edges = get_bucket_limits(n_buckets, ys=ys_tensor).to(device)
global_bucket_edges = get_bucket_borders(n_buckets, ys=ys_tensor).to(device)
return global_bucket_edges
2 changes: 1 addition & 1 deletion pretrain_regression.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse

import torch
from pfns.bar_distribution import FullSupportBarDistribution
from pfns.model.bar_distribution import FullSupportBarDistribution
from sklearn.metrics import r2_score

from nanotabpfn.callbacks import ConsoleLoggerCallback
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
"requests>=2",
"scikit-learn>=1.5",
"schedulefree>=1.4",
"pfns==0.3.0",
"pfns==0.4.2",
"openml==0.15.1",
]

Expand Down