mirror of
https://github.com/Doctorado-ML/FImdlp.git
synced 2025-08-17 00:15:52 +00:00
Update samples and Readme
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -20,14 +20,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Set up Python ${{ matrix.python }}
|
- name: Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -q --upgrade pip
|
pip install -q --upgrade pip
|
||||||
pip install -q scikit-learn cython
|
pip install -q scikit-learn cython
|
||||||
pip install -q --upgrade codecov coverage black flake8 codacy-coverage
|
pip install -q coverage black flake8 codacy-coverage
|
||||||
- name: Build and install
|
- name: Build and install
|
||||||
run: |
|
run: |
|
||||||
make install
|
make install
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
coverage run -m unittest discover -v -s src
|
coverage run -m unittest discover -v -s src
|
||||||
coverage xml
|
coverage xml
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
files: ./coverage.xml
|
files: ./coverage.xml
|
||||||
|
11
README.md
11
README.md
@@ -33,9 +33,12 @@ python samples/sample.py -h # for more options
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd samples
|
cd samples
|
||||||
mkdir build
|
cmake -B build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
make sample
|
||||||
make
|
./sample -f iris
|
||||||
./sample iris
|
./sample -h
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Based on
|
||||||
|
[https://github.com/rmontanana/mdlp](https://github.com/rmontanana/mdlp)
|
@@ -21,7 +21,7 @@ dynamic = ['version']
|
|||||||
dependencies = ["numpy", "joblib", "scikit-learn"]
|
dependencies = ["numpy", "joblib", "scikit-learn"]
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 4 - Beta",
|
||||||
"Intended Audience :: Science/Research",
|
"Intended Audience :: Science/Research",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"Topic :: Software Development",
|
"Topic :: Software Development",
|
||||||
@@ -33,6 +33,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
@@ -40,7 +41,7 @@ Home = "https://github.com/doctorado-ml/FImdlp"
|
|||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 79
|
line-length = 79
|
||||||
target_version = ['py39', 'py310']
|
target_version = ['py39', 'py310', 'py311']
|
||||||
include = '\.pyi?$'
|
include = '\.pyi?$'
|
||||||
exclude = '''
|
exclude = '''
|
||||||
/(
|
/(
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
project(main)
|
project(sample)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
|
@@ -44,10 +44,10 @@ test = FImdlp(
|
|||||||
now = time.time()
|
now = time.time()
|
||||||
test.fit(X, y)
|
test.fit(X, y)
|
||||||
fit_time = time.time()
|
fit_time = time.time()
|
||||||
print("Fitting: ", fit_time - now)
|
print(f"Fitting ....: {fit_time - now:7.5f} seconds")
|
||||||
now = time.time()
|
now = time.time()
|
||||||
Xt = test.transform(X)
|
Xt = test.transform(X)
|
||||||
print("Transforming: ", time.time() - now)
|
print(f"Transforming: {time.time() - now:7.5f} seconds")
|
||||||
print(test.get_cut_points())
|
print(test.get_cut_points())
|
||||||
clf = RandomForestClassifier(random_state=0)
|
clf = RandomForestClassifier(random_state=0)
|
||||||
print(
|
print(
|
||||||
|
Reference in New Issue
Block a user