mirror of
https://github.com/Doctorado-ML/STree.git
synced 2025-08-15 15:36:00 +00:00
Update google colab setup in notebooks
Undate save_all in grapher to make dest. folder if it doesn't exist
This commit is contained in:
@@ -9,10 +9,7 @@
|
||||
"#\n",
|
||||
"# Google Colab setup\n",
|
||||
"#\n",
|
||||
"#import os\n",
|
||||
"#os.chdir(\"/content\")\n",
|
||||
"#!git clone https://github.com/Doctorado-ML/STree.git\n",
|
||||
"#os.chdir(\"/content/STree\")"
|
||||
"#!pip install git+https://github.com/doctorado-ml/stree"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
5
setup.py
5
setup.py
@@ -1,6 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
__version__ = "0.9rc1"
|
||||
__version__ = "0.9rc2"
|
||||
__author__ = "Ricardo Montañana Gómez"
|
||||
|
||||
def readme():
|
||||
@@ -12,7 +12,7 @@ setuptools.setup(
|
||||
name='STree',
|
||||
version=__version__,
|
||||
license='MIT License',
|
||||
description='a python interface to oblique decision tree implementations',
|
||||
description='Oblique decision tree with svm nodes',
|
||||
long_description=readme(),
|
||||
long_description_content_type='text/markdown',
|
||||
packages=setuptools.find_packages(),
|
||||
@@ -34,7 +34,6 @@ setuptools.setup(
|
||||
'matplotlib',
|
||||
'ipympl'
|
||||
],
|
||||
data_files=[('data', ['data/.gitignore'])],
|
||||
test_suite="stree.tests",
|
||||
zip_safe=False
|
||||
)
|
||||
|
@@ -164,6 +164,8 @@ class Stree_grapher(Stree):
|
||||
:type save_folder: str, optional
|
||||
"""
|
||||
self._check_fitted()
|
||||
if not os.path.isdir(save_folder):
|
||||
os.mkdir(save_folder)
|
||||
seq = 1
|
||||
for node in self:
|
||||
node.save_hyperplane(save_folder=save_folder,
|
||||
|
@@ -9,10 +9,7 @@
|
||||
"#\n",
|
||||
"# Google Colab setup\n",
|
||||
"#\n",
|
||||
"#import os\n",
|
||||
"#os.chdir(\"/content\")\n",
|
||||
"#!git clone https://github.com/Doctorado-ML/STree.git\n",
|
||||
"#os.chdir(\"/content/STree\")"
|
||||
"#!pip install git+https://github.com/doctorado-ml/stree"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@@ -9,10 +9,7 @@
|
||||
"#\n",
|
||||
"# Google Colab setup\n",
|
||||
"#\n",
|
||||
"#import os\n",
|
||||
"#os.chdir(\"/content\")\n",
|
||||
"#!git clone https://github.com/Doctorado-ML/STree.git\n",
|
||||
"#os.chdir(\"/content/STree\")"
|
||||
"#!pip install git+https://github.com/doctorado-ml/stree"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@@ -9,10 +9,7 @@
|
||||
"#\n",
|
||||
"# Google Colab setup\n",
|
||||
"#\n",
|
||||
"#import os\n",
|
||||
"#os.chdir(\"/content\")\n",
|
||||
"#!git clone https://github.com/Doctorado-ML/STree.git\n",
|
||||
"#os.chdir(\"/content/STree\")"
|
||||
"#!pip install git+https://github.com/doctorado-ml/stree"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user