Skip to content

Commit d2e9e21

Browse files
committed
abc
1 parent da284f9 commit d2e9e21

File tree

56 files changed

+4132
-5793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4132
-5793
lines changed

.idea/PriorLabs.github.io.iml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/getting_started/api.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
title: API Usage Guide
3+
description: Complete guide for using the Prior Labs TabPFN API
4+
---
5+
6+
# TabPFN API Guide
7+
8+
## Authentication
9+
10+
### Interactive Login
11+
12+
The first time you use TabPFN, you'll be guided through an interactive login process:
13+
14+
```python
15+
from tabpfn_client import init
16+
init()
17+
```
18+
19+
### Managing Access Tokens
20+
21+
You can save your token for use on other machines:
22+
23+
```python
24+
import tabpfn_client
25+
# Get your token
26+
token = tabpfn_client.get_access_token()
27+
28+
# Use token on another machine
29+
tabpfn_client.set_access_token(token)
30+
```
31+
32+
## Rate Limits
33+
34+
Our API implements a fair usage system that resets daily at 00:00:00 UTC.
35+
36+
### Usage Cost Calculation
37+
38+
The cost for each API request is calculated as:
39+
```python
40+
api_cost = (num_train_rows + num_test_rows) * num_cols * n_estimators
41+
```
42+
43+
Where `n_estimators` is by default:
44+
- 4 for classification tasks
45+
- 8 for regression tasks
46+
47+
### Monitoring Usage
48+
49+
Track your API usage through response headers:
50+
51+
| Header | Description |
52+
|--------|-------------|
53+
| `X-RateLimit-Limit` | Your total allowed usage |
54+
| `X-RateLimit-Remaining` | Remaining usage |
55+
| `X-RateLimit-Reset` | Reset timestamp (UTC) |
56+
57+
## Current Limitations
58+
59+
### Data Privacy and Security
60+
61+
!!! warning "Important Data Guidelines"
62+
- Do NOT upload any Personally Identifiable Information (PII)
63+
- Do NOT upload any sensitive or confidential data
64+
- Do NOT upload any data you don't have permission to share
65+
- Consider anonymizing or pseudonymizing your data
66+
- Review your organization's data sharing policies
67+
68+
### Size Limitations
69+
70+
1. Maximum total cells per request must be below 100,000:
71+
```python
72+
max_cells = (num_train_rows + num_test_rows) * num_cols
73+
```
74+
75+
2. For regression with full output (`return_full_output=True`), the number of test samples must be below 500:
76+
```python
77+
if task == 'regression' and return_full_output and num_test_samples > 500:
78+
raise ValueError("Cannot return full output for regression with >500 test samples")
79+
```
80+
81+
These limits will be increased in future releases.
82+
83+
### Managing User Data
84+
85+
You can access and manage your personal information:
86+
87+
```python
88+
from tabpfn_client import UserDataClient
89+
print(UserDataClient.get_data_summary())
90+
```
91+
92+
## Error Handling
93+
94+
The API uses standard HTTP status codes:
95+
96+
| Code | Meaning |
97+
|------|----------|
98+
| 200 | Success |
99+
| 400 | Invalid request |
100+
| 429 | Rate limit exceeded |
101+
102+
Example error response:
103+
```json
104+
{
105+
"error": "API_LIMIT_REACHED",
106+
"message": "Usage limit exceeded",
107+
"next_available_at": "2024-01-07 00:00:00"
108+
}
109+
```

docs/getting_started/install.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ We will release open weights models soon, currently we are available via api and
2828

2929
!!! warning
3030
Not released yet
31+
32+
=== "Web Interface"
33+
34+
You can access our models through our Interface at [Prior Labs](https://www.ux.priorlabs.ai/).

docs/index.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -228,28 +228,6 @@ runtime on GPU is typically less than 10 seconds.
228228

229229
</div>
230230

231-
## Installation
232-
233-
<!---
234-
To install our software, we use pip the python package installer in combination with Git for code-management. An installation typically takes 5 minutes in a setup python environment.
235-
!!! tip
236-
237-
The easiest way to install and run our code is via the Colab Notebooks shared in the link in our submission.
238-
-->
239-
You can access our models through our API (https://github.com/automl/tabpfn-client) or via our user interface built on top of the API (https://ux.priorlabs.ai/).
240-
We will release open weights models soon, currently we are available via api and via our user interface built on top of the API.
241-
=== "Python API Client (No GPU, Online)"
242-
243-
```bash
244-
pip install tabpfn-client
245-
```
246-
247-
=== "Python Local (GPU)"
248-
249-
!!! warning
250-
Not released yet
251-
252-
253231
<!---
254232
#### Software Dependencies and Operating Systems
255233
Python: Version >= 3.9

docs/integrations/R.md

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)