Skip to content

Commit d975fc7

Browse files
committed
Saving....
1 parent d3821a4 commit d975fc7

2 files changed

Lines changed: 14 additions & 18 deletions

File tree

scripts/modeldata/skylake/analysis.txt

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,23 @@ loading modeltable.txt
22
chosenpredictors= ['integer_count', 'float_count', 'string_count', 'backslash_count', 'nonasciibyte_count', 'object_count', 'array_count', 'null_count', 'true_count', 'false_count', 'byte_count', 'structural_indexes_count']
33

44
target = stage1_cycle_count
5-
0.98 cycles per nonasciibyte_count
6-
0.46 cycles per byte_count
7-
R2 = 0.9987704927515433
5+
0.49 cycles per byte_count
6+
R2 = 0.9927537176836411
87

98
target = stage2_cycle_count
109
2 cycles per structural_indexes_count
1110
0.11 cycles per byte_count
12-
R2 = 0.9940031972098434
11+
R2 = 0.9944225230951305
1312

1413
target = stage3_cycle_count
15-
2.6 cycles per float_count
16-
2.4 cycles per string_count
17-
1.4 cycles per structural_indexes_count
18-
0.094 cycles per byte_count
19-
R2 = 0.9981627163839895
14+
18 cycles per float_count
15+
9 cycles per structural_indexes_count
16+
0.36 cycles per byte_count
17+
R2 = 0.9861501257004178
2018

2119
target = total_cycles
22-
7 cycles per string_count
23-
6.2 cycles per float_count
24-
2.6 cycles per structural_indexes_count
25-
0.77 cycles per nonasciibyte_count
26-
0.63 cycles per byte_count
27-
R2 = 0.999372564385096
20+
18 cycles per float_count
21+
11 cycles per structural_indexes_count
22+
0.95 cycles per byte_count
23+
R2 = 0.9922642870761073
2824

scripts/modeldata/skylake/learn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def displaycoefs(coef_name):
3636
chosentargets=["stage1_cycle_count", "stage2_cycle_count", "stage3_cycle_count","total_cycles"]
3737
for t in chosentargets:
3838
print("target = ", t)
39-
howmany = 2 # we want at most two predictors
39+
howmany = 1 # we want at most one predictors
4040
if(t.startswith("stage2")):
4141
howmany = 2 # we allow for less
4242
if(t.startswith("stage3")):
43-
howmany = 4 # we allow for more
43+
howmany = 3 # we allow for more
4444
if(t.startswith("total")):
45-
howmany = 5 # we allow for more
45+
howmany = 3 # we allow for more
4646
A=10000000.0
4747
while(True):
4848
regressor = Lasso(max_iter=100000, alpha=A, positive = True, normalize=False, fit_intercept=False) #LinearRegression(normalize=False, fit_intercept=False)

0 commit comments

Comments
 (0)