{"id":24680,"library":"tabicl","title":"TabICL","description":"TabICL (Tabular In-Context Learning) is a state-of-the-art tabular foundation model for few-shot and zero-shot learning on tabular data. Current version 2.1.1, actively maintained.","status":"active","version":"2.1.1","language":"python","source_language":"en","source_url":"https://github.com/autogluon/tabicd","tags":["tabular","foundation model","few-shot","machine learning","deep learning"],"install":[{"cmd":"pip install tabicl","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"TabICL requires PyTorch for model inference and training.","package":"torch","optional":false},{"reason":"Used for data loading and preprocessing.","package":"pandas","optional":false}],"imports":[{"note":"Direct import of the model class is required, not just the module.","wrong":"import tabicl","symbol":"TabICL","correct":"from tabicl import TabICL"}],"quickstart":{"code":"import pandas as pd\nfrom tabicl import TabICL\n\n# Load or create a pandas DataFrame with your data\n# data = pd.read_csv('your_data.csv')\n\n# Initialize the model\nmodel = TabICL(pretrained=True)\n\n# Example: predict on a dataset (adjust as per your task)\n# predictions = model.predict(data)\nprint('TabICL model loaded successfully')","lang":"python","description":"Basic usage of TabICL for tabular data prediction."},"warnings":[{"fix":"Ensure Python 3.10+ and upgrade PyTorch to 2.0+. Do not install older tabicl versions.","message":"TabICL v2.x requires Python >=3.10 and PyTorch >=2.0. Older versions (1.x) are incompatible and use different APIs.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Impute missing values before passing data. Use pandas .fillna() or similar.","message":"TabICL expects data in pandas DataFrame format with no missing values. NaN or None will cause silent errors or poor performance.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from tabicl import TabICL'. Ensure tabicl version 2.1.1 is installed: pip install tabicl==2.1.1","cause":"Incorrect import path; possibly using an older version or wrong module name.","error":"ImportError: cannot import name 'TabICL' from 'tabicl'"},{"fix":"Wrap your data: data = pd.DataFrame(data). TabICL's API explicitly requires DataFrame.","cause":"Passing a numpy array or list instead of DataFrame.","error":"RuntimeError: Expected input to be a pandas DataFrame"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}