forked from mlpack/benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mlpack#43 from Iron-Stark/dectree
Added more options like min_samples_split,min_samples_leaf,max_features and max_nodes in Decision Tree scikit implementation.
- Loading branch information
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import yaml | ||
|
||
class VERSION_INFO(object): | ||
|
||
def ret_version_info(): | ||
|
||
stream = open("config.yaml", "r") | ||
docs = yaml.load_all(stream) | ||
count=1 | ||
ans = {} | ||
for doc in docs: | ||
if count==1: | ||
ans = doc | ||
else: | ||
break | ||
count+=1 | ||
versions = ans['settings']['version'] | ||
libraries = ans['settings']['libraries'] | ||
lib_ver = {} | ||
for i in range(len(versions)): | ||
lib_ver[libraries[i]] = versions[i] | ||
return lib_ver |