Skip to content
Snippets Groups Projects
Select Git revision
  • c7651ec8d2a8f1ab4c2537ecedb965ff98dddadf
  • main default
  • logRegressionVisuals
  • Dashboard
  • explainerAnnotation
  • DT-Class-Design
  • WIP-4-ModelCreation-class
  • Data_Ingestion_Class_Creation
  • 3-dummy-issue
  • 5-feature
10 results

why-senior-project

user avatar
Abdullah Shah authored
Merge branch 'decisiontreevisualoutput' of https://gitlab.cci.drexel.edu/pjm363/why-senior-project into decisiontreevisualoutput
final commit
c7651ec8
History

WHY Senior Project

Installing WHY

There are two way in which the WHY package can be installed. First, follow the prerequisite instructions. IF you do not need to rebuild documentation or make modifications to the library, follow the instructions under User Installation. Otherwise, follow the instructions under Developer Installation.

Prerequisites

The WHY requires at least python3.8 and makes use of a number of third-party libraries. The bare minimum packages are automatically installed when you install WHY using pip. Additional dependencies for developers are contained in requirements.txt file. See the

It's recommended that you use WHY within a python virtual environment. Virtual environments are now included natively with Python 3 using venv. Instructions to create a virtual environment can be found here.

API documentation requires the use of sphinx which will require installing Cmake. Installation instructions can be found here.

User Installation

First you must clone the repository using the following bash command.

pip clone git@gitlab.cci.drexel.edu:pjm363/why-senior-project.git

From the root path of the repository (the folder where setup.py is located) WHY can be installed using pip using the following command.

pip install .

Developer Installation

Developers need an additional tool, clang-format in order to run the precommit script.

Install via Ubuntu.

apt-get install clang-format

Install via MacOSX with homebrew.

brew install clang-format

Install via installer or using chocolatey via.

choco install llvm

Install WHY using pip:

pip install -e .

Running examples

From the examples directory

bokeh serve --show <name of app folder>

For a developer option the --dev flag can be used to auto refresh server from IDE.

bokeh serve --show <name of app folder> --dev

Building API Documentation

To build the API Documentation in HTML format for local browsing, execute the following from the root of the repository.

cd docs/
make html

This will also cause any examples contained in examples to be generated in the example gallery.
All documentation is also built automatically when the ./precommit.sh script is run.