Upload folder using huggingface_hub
Browse files- README.md +27 -0
- config.json +13 -0
- scaler.pkl +3 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# data-intelligence-management-import-development
|
3 |
+
|
4 |
+
Time series forecasting model for import development prediction.
|
5 |
+
|
6 |
+
## Model details
|
7 |
+
- Task: Time series forecasting
|
8 |
+
- Architecture: LSTM-based model
|
9 |
+
- Input: 5 time steps
|
10 |
+
- Output: 5 future predictions
|
11 |
+
|
12 |
+
## Usage with Hugging Face Inference API
|
13 |
+
```python
|
14 |
+
import requests
|
15 |
+
|
16 |
+
API_URL = "https://api-inference.huggingface.co/models/data-intelligence-management-import-development"
|
17 |
+
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
|
18 |
+
|
19 |
+
def query(data):
|
20 |
+
response = requests.post(API_URL, headers=headers, json={"inputs": data})
|
21 |
+
return response.json()
|
22 |
+
|
23 |
+
# Example input: last 5 time steps
|
24 |
+
data = [10, 15, 20, 25, 30]
|
25 |
+
predictions = query(data)
|
26 |
+
print(predictions) # Returns 5 future predictions
|
27 |
+
```
|
config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_type": "time_series_forecast",
|
3 |
+
"architectures": [
|
4 |
+
"TimeSeriesModel"
|
5 |
+
],
|
6 |
+
"hidden_size": 128,
|
7 |
+
"input_shape": [
|
8 |
+
5,
|
9 |
+
1
|
10 |
+
],
|
11 |
+
"output_dim": 5,
|
12 |
+
"transformers_version": "4.28.1"
|
13 |
+
}
|
scaler.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc539510f3aff5c344f9607d70acebdc75328d9052ec3d6734d2eccd90a7e474
|
3 |
+
size 473
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d9b493e3c2bc55dd5bb460aef99044f47b000fe2b2c17c017bab7a489acd3b0
|
3 |
+
size 823584
|