fathinmp commited on
Commit
eb6cbcf
·
verified ·
1 Parent(s): e00d66d

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +27 -0
  2. config.json +13 -0
  3. scaler.pkl +3 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # data-intelligence-management-raw-material
3
+
4
+ Time series forecasting model for raw material 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-raw-material"
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:2495d7c7cc120c7b38198707bfb0b8189845df62005685453e1ddeedd0870c41
3
+ size 473
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7832bee282f4b5e61fb9d5bba87cce89ee2706daca7efc2f13e998b201c4564
3
+ size 823584