patrickjchen commited on
Commit
0514dfd
1 Parent(s): 50bcdf5

Add model and tokenizer files

Browse files
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<unk>NOTUSED": 32005
3
+ }
config.json CHANGED
@@ -1,54 +1,28 @@
1
- import numpy as np
2
- import scipy.stats as stats
3
- import matplotlib.pyplot as plt
4
- import seaborn as sns
5
- import pandas as pd
6
-
7
- # Generate some synthetic data
8
- np.random.seed(42)
9
-
10
- data = np.random.normal(loc=0, scale=1, size=1000)
11
-
12
- """
13
- df = pd.read_csv("es.csv")
14
- futures_data = df
15
- futures_data['Log_Returns'] = np.log(futures_data['Adj Close'] / futures_data['Adj Close'].shift(1)).dropna()
16
- futures_data = futures_data.dropna()
17
- futures_data['Log_Returns'] = futures_data['Log_Returns']/futures_data['Log_Returns'].expanding().std()
18
- futures_data = futures_data.dropna()
19
- data = futures_data['Log_Returns']
20
- """
21
-
22
- # Skewness and Kurtosis
23
- skewness = stats.skew(data)
24
- kurtosis = stats.kurtosis(data) + 3 # Adjust for excess kurtosis
25
- print(f"Skewness: {skewness}")
26
- print(f"Kurtosis: {kurtosis}")
27
-
28
- # Kolmogorov-Smirnov Test
29
- ks_stat, ks_p_value = stats.kstest(data, 'norm', args=(data.mean(), data.std()))
30
- print(f"Kolmogorov-Smirnov test statistic: {ks_stat}")
31
- print(f"Kolmogorov-Smirnov test p-value: {ks_p_value}")
32
-
33
- # Shapiro-Wilk Test
34
- sw_stat, sw_p_value = stats.shapiro(data)
35
- print(f"Shapiro-Wilk test statistic: {sw_stat}")
36
- print(f"Shapiro-Wilk test p-value: {sw_p_value}")
37
-
38
- # Anderson-Darling Test
39
- ad_result = stats.anderson(data, dist='norm')
40
- print(f"Anderson-Darling test statistic: {ad_result.statistic}")
41
- print(f"Anderson-Darling critical values: {ad_result.critical_values}")
42
- print(f"Anderson-Darling significance levels: {ad_result.significance_level}")
43
-
44
- # Q-Q Plot
45
- plt.figure(figsize=(8, 6))
46
- stats.probplot(data, dist="norm", plot=plt)
47
- plt.title("Q-Q Plot")
48
- plt.show()
49
-
50
- # Histogram with KDE
51
- plt.figure(figsize=(8, 6))
52
- sns.histplot(data, kde=True)
53
- plt.title("Histogram with KDE")
54
- plt.show()
 
1
+ {
2
+ "_name_or_path": "camembert-base",
3
+ "architectures": [
4
+ "CamembertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 5,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 6,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "camembert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.42.4",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 32005
28
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:207956d66df0dbd9ffa23821fdffa8b4e6d78163a49adc4f0a3c848175b75e03
3
+ size 442510176
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:988bc5a00281c6d210a5d34bd143d0363741a432fefe741bf71e61b1869d4314
3
+ size 810912
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<s>NOTUSED",
4
+ "</s>NOTUSED",
5
+ "<unk>NOTUSED"
6
+ ],
7
+ "bos_token": "<s>",
8
+ "cls_token": "<s>",
9
+ "eos_token": "</s>",
10
+ "mask_token": {
11
+ "content": "<mask>",
12
+ "lstrip": true,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ "pad_token": "<pad>",
18
+ "sep_token": "</s>",
19
+ "unk_token": "<unk>"
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>NOTUSED",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>NOTUSED",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "4": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "5": {
36
+ "content": "<s>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "6": {
44
+ "content": "</s>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "32004": {
52
+ "content": "<mask>",
53
+ "lstrip": true,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "32005": {
60
+ "content": "<unk>NOTUSED",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ }
67
+ },
68
+ "additional_special_tokens": [
69
+ "<s>NOTUSED",
70
+ "</s>NOTUSED",
71
+ "<unk>NOTUSED"
72
+ ],
73
+ "bos_token": "<s>",
74
+ "clean_up_tokenization_spaces": true,
75
+ "cls_token": "<s>",
76
+ "eos_token": "</s>",
77
+ "mask_token": "<mask>",
78
+ "model_max_length": 512,
79
+ "pad_token": "<pad>",
80
+ "sep_token": "</s>",
81
+ "tokenizer_class": "CamembertTokenizer",
82
+ "unk_token": "<unk>"
83
+ }