Add support for regression #1
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
name: pip install | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pip-Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Update system" | |
run: | | |
sudo apt update | |
sudo apt upgrade | |
sudo apt autoremove | |
- name: "Install new g++" | |
run: | | |
sudo apt install g++ | |
- name: "Clone the PLSSVM repository into PLSSVM/" | |
uses: actions/[email protected] | |
with: | |
path: PLSSVM | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: "Create and activate virtual environment" | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV | |
- name: "Install Python dependencies" | |
run: | | |
source $VIRTUAL_ENV/bin/activate | |
pip install --upgrade pip | |
pip install -r PLSSVM/install/python_requirements.txt | |
- name: "Build PLSSVM locally via pip" | |
run: | | |
source $VIRTUAL_ENV/bin/activate | |
cd PLSSVM | |
pip install . | |
- name: "Run examples" | |
env: | |
MPLBACKEND: Agg | |
run: | | |
source $VIRTUAL_ENV/bin/activate | |
set -e | |
cd PLSSVM/examples/python | |
python sklearn_like_svc.py | |
python sklearn_like_svr.py | |
cd sklearn | |
python plot_classifier_comparison.py | |
python plot_decision_boundaries_via_coef_and_intercept.py | |
python plot_decision_boundary_confidence.py | |
python plot_different_classifiers.py | |
python plot_digits_classification.py | |
python plot_face_recognition.py | |
python plot_feature_discretization.py | |
python plot_rbf_parameters.py | |
python plot_rbf_parameters_3_classes.py | |
python plot_separating_hyperplane.py | |
python plot_svm_anova.py | |
python plot_svm_kernels.py | |
python plot_svm_margin.py | |
python plot_svm_regression.py |