client ¶
DatasetUIDCacheManager ¶
Manages a cache of the last 50 uploaded datasets, tracking dataset hashes and their UIDs.
add_dataset_uid ¶
Adds a new dataset to the cache, removing the oldest item if the cache exceeds 50 entries. Assumes the dataset is not already in the cache.
delete_uid ¶
Deletes an entry from the cache based on the dataset UID.
get_dataset_uid ¶
Generates hash by all received arguments and returns cached dataset uid if in cache, otherwise None.
load_cache ¶
Loads the cache from disk if it exists, otherwise initializes an empty cache.
GCPOverloaded ¶
Bases: Exception
Exception raised when the Google Cloud Platform service is overloaded or unavailable.
ServiceClient ¶
Bases: Singleton
Singleton class for handling communication with the server. It encapsulates all the API calls to the server.
delete_all_datasets
classmethod
¶
Delete all datasets uploaded by the user from the server.
Returns¶
deleted_dataset_uids : [str] The list of deleted dataset UIDs.
delete_dataset
classmethod
¶
download_all_data
classmethod
¶
Download all data uploaded by the user from the server.
Returns¶
save_path : Path | None The path to the downloaded file. Return None if download fails.
fit
classmethod
¶
Upload a train set to server and return the train set UID if successful.
Parameters¶
X : array-like of shape (n_samples, n_features) The training input samples. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values. config : dict, optional Configuration for the fit method. Includes tabpfn_systems and paper_version.
Returns¶
train_set_uid : str The unique ID of the train set in the server.
get_data_summary
classmethod
¶
Get the data summary of the user from the server.
Returns¶
data_summary : dict The data summary returned from the server.
get_password_policy
classmethod
¶
Get the password policy from the server.
Returns¶
password_policy : {} The password policy returned from the server.
is_auth_token_outdated
classmethod
¶
Check if the provided access token is valid and return True if successful.
login
classmethod
¶
predict
classmethod
¶
register
classmethod
¶
retrieve_greeting_messages
classmethod
¶
Retrieve greeting messages that are new for the user.
send_reset_password_email
classmethod
¶
Let the server send an email for resetting the password.
send_verification_email
classmethod
¶
Let the server send an email for verifying the email.
try_browser_login
classmethod
¶
Attempts browser-based login flow Returns (success: bool, message: str)
try_connection
classmethod
¶
Check if server is reachable and accepts the connection.