eishatirraazia19 commited on
Commit
dc8579a
·
verified ·
1 Parent(s): df51d67

Upload folder using huggingface_hub

Browse files
models/correlation_weights.json CHANGED
@@ -1,41 +1,38 @@
1
  {
2
  "weights": {
3
- "active_days_default_branch": -0.32000895362757004,
4
- "commit_count_default_branch": -0.08915763336533962,
5
- "commit_log": -0.1356281275904596,
6
- "contributors_count_log": -0.11773324509358987,
7
- "contributors_total": -0.05306211869899402,
8
- "files_total_count": -0.03649061319955837,
9
- "forks": -0.048876920634545414,
10
- "has_ci": -0.389752008144982,
11
- "has_contributing": -0.2772269139097759,
12
- "has_docker": -0.13561136756812864,
13
- "has_docs": -0.22405221093174602,
14
- "has_license_file": -0.3602886455902288,
15
- "has_notebooks": 0.08116163434258174,
16
- "has_readme_file": -0.05868432156629015,
17
- "has_tests": -0.2011687696702064,
18
- "is_archived": 0.07589036740332085,
19
- "is_fork": -0.36801625550098965,
20
- "issues_open": -0.1105865341324039,
21
- "issues_total": -0.11037163974501461,
22
- "n_concepts": 0.004025758184637505,
23
- "pull_requests_closed": -0.18905873711091264,
24
- "pull_requests_open": -0.13868525043069999,
25
- "pull_requests_total": -0.16345730456087648,
26
- "readme_length": -0.03578768272897963,
27
- "releases_count": -0.17300799502634984,
28
- "repo_age_days": -0.23066066018688383,
29
- "stars": -0.032093960817002026,
30
- "watchers": -0.033079952897285304
31
  },
32
  "feat_min": {
33
- "active_days_default_branch": 0.0,
34
- "commit_count_default_branch": 0.0,
35
- "commit_log": 0.0,
36
- "contributors_count_log": 0.0,
37
- "contributors_total": 0.0,
38
- "files_total_count": 0.0,
39
  "forks": 0.0,
40
  "has_ci": 0.0,
41
  "has_contributing": 0.0,
@@ -47,26 +44,25 @@
47
  "has_tests": 0.0,
48
  "is_archived": 0.0,
49
  "is_fork": 0.0,
 
50
  "issues_open": 0.0,
51
  "issues_total": 0.0,
52
  "n_concepts": 0.0,
53
  "pull_requests_closed": 0.0,
 
54
  "pull_requests_open": 0.0,
55
  "pull_requests_total": 0.0,
56
- "readme_length": 0.0,
57
  "releases_count": 0.0,
58
- "repo_age_days": -1597.0,
59
- "stars": 0.0,
60
  "watchers": 0.0
61
  },
62
  "feat_max": {
63
- "active_days_default_branch": 5689.0,
64
- "commit_count_default_branch": 85657.0,
65
- "commit_log": 11.358117902776314,
66
- "contributors_count_log": 9.886137914201015,
67
- "contributors_total": 19655.0,
68
- "files_total_count": 36225.0,
69
- "forks": 9.0,
70
  "has_ci": 1.0,
71
  "has_contributing": 1.0,
72
  "has_docker": 1.0,
@@ -77,19 +73,20 @@
77
  "has_tests": 1.0,
78
  "is_archived": 1.0,
79
  "is_fork": 1.0,
80
- "issues_open": 10.0,
81
- "issues_total": 79.0,
82
- "n_concepts": 245.0,
83
- "pull_requests_closed": 10.0,
84
- "pull_requests_open": 23.0,
85
- "pull_requests_total": 130.0,
86
- "readme_length": 192458.0,
87
- "releases_count": 16.0,
88
- "repo_age_days": 2539.0,
89
- "stars": 21.0,
90
- "watchers": 4.0
 
91
  },
92
  "threshold": 0.65,
93
- "score_min": -2.6250671071176233,
94
- "score_max": -0.0325927600556277
95
  }
 
1
  {
2
  "weights": {
3
+ "commit_log": 0.1895884020450386,
4
+ "contributors_total": -0.02388895261301803,
5
+ "dirs_total_count": 0.12741684575311418,
6
+ "files_total_count": -0.12831061433803512,
7
+ "forks": 0.2597538334261471,
8
+ "has_ci": -0.12267586352461855,
9
+ "has_contributing": -0.029088091351198206,
10
+ "has_docker": 0.14808236823486554,
11
+ "has_docs": 0.0018808836576263725,
12
+ "has_license_file": 0.02262042082969958,
13
+ "has_notebooks": 0.052037781194329495,
14
+ "has_readme_file": -0.2820280161442261,
15
+ "has_tests": -0.07386544727257092,
16
+ "is_archived": 0.1302640612684094,
17
+ "is_fork": 0.12503908082008885,
18
+ "issues_closed": 0.04433033286911523,
19
+ "issues_open": -0.05649914022241052,
20
+ "issues_total": 0.03231550773677513,
21
+ "n_concepts": 0.012027016949546885,
22
+ "pull_requests_closed": -0.06994412136387343,
23
+ "pull_requests_merged": 0.04355602218520612,
24
+ "pull_requests_open": 0.11827712454610317,
25
+ "pull_requests_total": -0.13645944446107097,
26
+ "readme_length": -0.17267677890525737,
27
+ "releases_count": -0.022457681875842374,
28
+ "stars_log": -0.1186522611239424,
29
+ "watchers": 0.02796763438753313
 
30
  },
31
  "feat_min": {
32
+ "commit_log": 0.6931471805599453,
33
+ "contributors_total": 1.0,
34
+ "dirs_total_count": 1.0,
35
+ "files_total_count": 5.0,
 
 
36
  "forks": 0.0,
37
  "has_ci": 0.0,
38
  "has_contributing": 0.0,
 
44
  "has_tests": 0.0,
45
  "is_archived": 0.0,
46
  "is_fork": 0.0,
47
+ "issues_closed": 0.0,
48
  "issues_open": 0.0,
49
  "issues_total": 0.0,
50
  "n_concepts": 0.0,
51
  "pull_requests_closed": 0.0,
52
+ "pull_requests_merged": 0.0,
53
  "pull_requests_open": 0.0,
54
  "pull_requests_total": 0.0,
55
+ "readme_length": 9.0,
56
  "releases_count": 0.0,
57
+ "stars_log": 0.0,
 
58
  "watchers": 0.0
59
  },
60
  "feat_max": {
61
+ "commit_log": 5.293304824724492,
62
+ "contributors_total": 9.0,
63
+ "dirs_total_count": 29.0,
64
+ "files_total_count": 99.0,
65
+ "forks": 19.0,
 
 
66
  "has_ci": 1.0,
67
  "has_contributing": 1.0,
68
  "has_docker": 1.0,
 
73
  "has_tests": 1.0,
74
  "is_archived": 1.0,
75
  "is_fork": 1.0,
76
+ "issues_closed": 14.0,
77
+ "issues_open": 4.0,
78
+ "issues_total": 19.0,
79
+ "n_concepts": 49.0,
80
+ "pull_requests_closed": 4.0,
81
+ "pull_requests_merged": 4.0,
82
+ "pull_requests_open": 2.0,
83
+ "pull_requests_total": 9.0,
84
+ "readme_length": 4976.0,
85
+ "releases_count": 4.0,
86
+ "stars_log": 3.912023005428146,
87
+ "watchers": 9.0
88
  },
89
  "threshold": 0.65,
90
+ "score_min": -0.542161003848686,
91
+ "score_max": 0.6793365509477417
92
  }
models/features.json CHANGED
@@ -1,9 +1,7 @@
1
  [
2
- "active_days_default_branch",
3
- "commit_count_default_branch",
4
  "commit_log",
5
- "contributors_count_log",
6
  "contributors_total",
 
7
  "files_total_count",
8
  "forks",
9
  "has_ci",
@@ -16,15 +14,16 @@
16
  "has_tests",
17
  "is_archived",
18
  "is_fork",
 
19
  "issues_open",
20
  "issues_total",
21
  "n_concepts",
22
  "pull_requests_closed",
 
23
  "pull_requests_open",
24
  "pull_requests_total",
25
  "readme_length",
26
  "releases_count",
27
- "repo_age_days",
28
- "stars",
29
  "watchers"
30
  ]
 
1
  [
 
 
2
  "commit_log",
 
3
  "contributors_total",
4
+ "dirs_total_count",
5
  "files_total_count",
6
  "forks",
7
  "has_ci",
 
14
  "has_tests",
15
  "is_archived",
16
  "is_fork",
17
+ "issues_closed",
18
  "issues_open",
19
  "issues_total",
20
  "n_concepts",
21
  "pull_requests_closed",
22
+ "pull_requests_merged",
23
  "pull_requests_open",
24
  "pull_requests_total",
25
  "readme_length",
26
  "releases_count",
27
+ "stars_log",
 
28
  "watchers"
29
  ]
models/model_metadata.json CHANGED
@@ -1,14 +1,12 @@
1
  {
2
- "data_path": "/Users/eisha/Documents/hackathon_analysis/data/repo_metadata_with_predictions.csv",
3
- "total_repos": 487,
4
- "valid_repos": 458,
5
- "n_features": 28,
6
  "features": [
7
- "active_days_default_branch",
8
- "commit_count_default_branch",
9
  "commit_log",
10
- "contributors_count_log",
11
  "contributors_total",
 
12
  "files_total_count",
13
  "forks",
14
  "has_ci",
@@ -21,31 +19,32 @@
21
  "has_tests",
22
  "is_archived",
23
  "is_fork",
 
24
  "issues_open",
25
  "issues_total",
26
  "n_concepts",
27
  "pull_requests_closed",
 
28
  "pull_requests_open",
29
  "pull_requests_total",
30
  "readme_length",
31
  "releases_count",
32
- "repo_age_days",
33
- "stars",
34
  "watchers"
35
  ],
36
- "cv_accuracy": 0.869,
37
  "top_importances": {
38
- "active_days_default_branch": 0.2201,
39
- "repo_age_days": 0.1512,
40
- "is_fork": 0.1018,
41
- "contributors_total": 0.0798,
42
- "contributors_count_log": 0.072,
43
- "has_ci": 0.0597,
44
- "commit_log": 0.0571,
45
- "commit_count_default_branch": 0.0551,
46
- "files_total_count": 0.0448,
47
- "readme_length": 0.0302
48
  },
49
- "correlation_weights_path": "/Users/eisha/Documents/hackathon_analysis/src/hackathon_analysis/models/correlation_weights.json",
50
- "rf_model_path": "/Users/eisha/Documents/hackathon_analysis/src/hackathon_analysis/models/rf_model.pkl"
51
  }
 
1
  {
2
+ "data_path": "/private/var/folders/b1/02zlb8yx3m5_j30bfvwsxdr40000gn/T/pytest-of-eisha/pytest-33/test_predict_repo_returns_all_0/train.csv",
3
+ "total_repos": 80,
4
+ "valid_repos": 80,
5
+ "n_features": 27,
6
  "features": [
 
 
7
  "commit_log",
 
8
  "contributors_total",
9
+ "dirs_total_count",
10
  "files_total_count",
11
  "forks",
12
  "has_ci",
 
19
  "has_tests",
20
  "is_archived",
21
  "is_fork",
22
+ "issues_closed",
23
  "issues_open",
24
  "issues_total",
25
  "n_concepts",
26
  "pull_requests_closed",
27
+ "pull_requests_merged",
28
  "pull_requests_open",
29
  "pull_requests_total",
30
  "readme_length",
31
  "releases_count",
32
+ "stars_log",
 
33
  "watchers"
34
  ],
35
+ "cv_accuracy": 0.55,
36
  "top_importances": {
37
+ "forks": 0.0848,
38
+ "files_total_count": 0.0839,
39
+ "commit_log": 0.0738,
40
+ "readme_length": 0.072,
41
+ "issues_closed": 0.0557,
42
+ "stars_log": 0.055,
43
+ "pull_requests_merged": 0.0526,
44
+ "has_readme_file": 0.0507,
45
+ "contributors_total": 0.0504,
46
+ "issues_total": 0.0492
47
  },
48
+ "correlation_weights_path": "/private/var/folders/b1/02zlb8yx3m5_j30bfvwsxdr40000gn/T/pytest-of-eisha/pytest-33/test_predict_repo_returns_all_0/models/correlation_weights.json",
49
+ "rf_model_path": "/private/var/folders/b1/02zlb8yx3m5_j30bfvwsxdr40000gn/T/pytest-of-eisha/pytest-33/test_predict_repo_returns_all_0/models/rf_model.pkl"
50
  }
models/rf_model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6071bd3ba61a3009a0b19e755ca0f5873f286ee3799bbaf16f9f2c769a8dfb2e
3
- size 430371
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c84e74e0576a1fd8de47171d80e69ae4b65bad7c1689db8f06a50ab34c5d72e
3
+ size 151148