From ef21755e425adc1edcea2bd53b8eb7c0b9884991 Mon Sep 17 00:00:00 2001
From: Philip Monaco <philmonaco34@gmail.com>
Date: Fri, 15 Apr 2022 13:12:12 -0400
Subject: [PATCH] patch module import errors
---
WHY/WHY.egg-info/PKG-INFO | 71 ------------------
WHY/WHY.egg-info/SOURCES.txt | 8 --
WHY/WHY.egg-info/dependency_links.txt | 1 -
WHY/WHY.egg-info/not-zip-safe | 1 -
WHY/WHY.egg-info/requires.txt | 32 --------
WHY/WHY.egg-info/top_level.txt | 1 -
WHY/__pycache__/__init__.cpython-39.pyc | Bin 157 -> 0 bytes
WHY/__pycache__/callbacks.cpython-39.pyc | Bin 669 -> 0 bytes
WHY/__pycache__/config.cpython-39.pyc | Bin 1047 -> 0 bytes
examples/README.rst | 70 +++++++++++++++++
{WHY => examples}/__init__.py | 0
examples/decision_tree/main.py | 6 +-
src/__init__.py | 0
src/__pycache__/config.cpython-39.pyc | Bin 0 -> 1047 bytes
.../__pycache__/data_vis.cpython-39.pyc | Bin 809 -> 809 bytes
.../__pycache__/synthetic.cpython-39.pyc | Bin 5248 -> 5248 bytes
{WHY => src}/config.py | 0
{WHY => src}/data_vis.py | 0
{WHY => src}/synthetic.py | 0
19 files changed, 73 insertions(+), 117 deletions(-)
delete mode 100644 WHY/WHY.egg-info/PKG-INFO
delete mode 100644 WHY/WHY.egg-info/SOURCES.txt
delete mode 100644 WHY/WHY.egg-info/dependency_links.txt
delete mode 100644 WHY/WHY.egg-info/not-zip-safe
delete mode 100644 WHY/WHY.egg-info/requires.txt
delete mode 100644 WHY/WHY.egg-info/top_level.txt
delete mode 100644 WHY/__pycache__/__init__.cpython-39.pyc
delete mode 100644 WHY/__pycache__/callbacks.cpython-39.pyc
delete mode 100644 WHY/__pycache__/config.cpython-39.pyc
create mode 100644 examples/README.rst
rename {WHY => examples}/__init__.py (100%)
create mode 100644 src/__init__.py
create mode 100644 src/__pycache__/config.cpython-39.pyc
rename {WHY => src}/__pycache__/data_vis.cpython-39.pyc (84%)
rename {WHY => src}/__pycache__/synthetic.cpython-39.pyc (70%)
rename {WHY => src}/config.py (100%)
rename {WHY => src}/data_vis.py (100%)
rename {WHY => src}/synthetic.py (100%)
diff --git a/WHY/WHY.egg-info/PKG-INFO b/WHY/WHY.egg-info/PKG-INFO
deleted file mode 100644
index adf55de..0000000
--- a/WHY/WHY.egg-info/PKG-INFO
+++ /dev/null
@@ -1,71 +0,0 @@
-Metadata-Version: 2.1
-Name: WHY
-Version: 0.0.1.dev0+5059977
-Summary: Explainable AI system
-Home-page: https://gitlab.cci.drexel.edu/pjm363/why-senior-project
-Author: Philip Monaco, Abdullah Shah, Ibrahim Elsaid, Jashanpreet Singh, William Lu, Songheng Li
-License: LICENSE.md
-Description: # WHY Senior Project
-
- ## Installing WHY
-
- There are two way in which the `WHY` package can be installed.
- First, follow the [prerequisite](#prerequisites) instructions.
- IF you do not need to rebuild documentation or make modifications to the library, follow the instructions under [User Installation](#user-installation).
- Otherwise, follow the instructions under [Developer Installation](#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](https://docs.python.org/3/library/venv.html).
-
- API documentation requires the use of `sphinx` which will require installing `Cmake`. Installation instructions can be found [here](https://cmake.org/install/).
-
- ### User Installation
-
- First you must clone the repository using the following bash command.
- ```bash
- 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.
-
- ```bash
- pip install .
- ```
-
- ### Developer Installation
- Developers need an additional tool, `clang-format` in order to run the precommit script.
-
- Install via Ubuntu.
- ```bash
- apt-get install clang-format
- ```
- Install via MacOSX with homebrew.
- ```bash
- brew install clang-format
- ```
- Install via [installer](https://llvm.org/builds/) or using chocolatey via.
- ```bash
- choco install llvm
- ```
-
- ## 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.
-
-Platform: UNKNOWN
-Requires-Python: >=3.8
-Description-Content-Type: text/markdown
-Provides-Extra: lint
-Provides-Extra: docs
-Provides-Extra: all
diff --git a/WHY/WHY.egg-info/SOURCES.txt b/WHY/WHY.egg-info/SOURCES.txt
deleted file mode 100644
index 5983488..0000000
--- a/WHY/WHY.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-README.md
-setup.py
-src/WHY.egg-info/PKG-INFO
-src/WHY.egg-info/SOURCES.txt
-src/WHY.egg-info/dependency_links.txt
-src/WHY.egg-info/not-zip-safe
-src/WHY.egg-info/requires.txt
-src/WHY.egg-info/top_level.txt
\ No newline at end of file
diff --git a/WHY/WHY.egg-info/dependency_links.txt b/WHY/WHY.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/WHY/WHY.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/WHY/WHY.egg-info/not-zip-safe b/WHY/WHY.egg-info/not-zip-safe
deleted file mode 100644
index 8b13789..0000000
--- a/WHY/WHY.egg-info/not-zip-safe
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/WHY/WHY.egg-info/requires.txt b/WHY/WHY.egg-info/requires.txt
deleted file mode 100644
index e0c87a2..0000000
--- a/WHY/WHY.egg-info/requires.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-numpy>=1.21
-pandas>=1.3.5
-bokeh>=2.4.2
-matplotlib>=3.5.0
-scikit-learn>=1.0.2
-
-[all]
-numpy>=1.21
-pandas>=1.3.5
-bokeh>=2.4.2
-matplotlib>=3.5.0
-scikit-learn>=1.0.2
-black==21.12b0
-isort==5.10.1
-flake8==4.0.1
-mypy
-Sphinx
-sphinx-gallery
-sphinx-rtd-theme
-m2r2
-
-[docs]
-Sphinx
-sphinx-gallery
-sphinx-rtd-theme
-m2r2
-
-[lint]
-black==21.12b0
-isort==5.10.1
-flake8==4.0.1
-mypy
diff --git a/WHY/WHY.egg-info/top_level.txt b/WHY/WHY.egg-info/top_level.txt
deleted file mode 100644
index 8b13789..0000000
--- a/WHY/WHY.egg-info/top_level.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/WHY/__pycache__/__init__.cpython-39.pyc b/WHY/__pycache__/__init__.cpython-39.pyc
deleted file mode 100644
index 15b11825b829fbc2888942ff921f35f27c518637..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 157
zcmYe~<>g{vU|^WP&LRm!KL!!Vn2~{j!GVE+p_qk%fgyz<m_d`#ZzV$!NEku<a`Lc>
z2~N()&(Dc*DN3zK&4~|A&CAR$iVrBt&q_@$i7C&h)GY=J=@vkRii?tC;^Q;(GE3s)
X^$IF)aoFVMr<CTT+JVge3~~bibHpby
diff --git a/WHY/__pycache__/callbacks.cpython-39.pyc b/WHY/__pycache__/callbacks.cpython-39.pyc
deleted file mode 100644
index e27ed75d6803ca326a093520fb929f89d78bd946..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 669
zcmYe~<>g{vU|@K?J|d}(k%8ech=Yt-7#J8F7#J9edl(oPQW#Pga~Pr+!8B78Qwl>0
zQx0=3OB4$uNRBy&HJ2@lEtfrtJ(nYj11!dp!<ow!#g)q)#SP}O=J4e5M)BtIMe*hG
zNAc$hL<!^yMhSxD*m8t&g`<SQZ1x<HT+t{|Mut?z1!Aef>5M5HA`A-|qr_7<qa;!o
zgBdirUV_}|r^$Fru(&d>BqOyXGdVsbu_UoLwM3Ko7F%*@QA&RDEtcYp{PJ7;`K2WV
zr6uus`6a1I`T5zJOt;vQ^K(jb^KLO0<(F%+-V$&Ib6pZk5`*(gi;`1su?45*q$Zc#
zVhhg6Oi3-e#S)N{Uvi5*I61MTB(+GB@fK%rL27bIQDTmnCgUx(w9NF<qSTin3=9k}
z85tNDG$n7b=9T6aRNi9BE4amyn^=+&#R+$55fcLgLlj3+es*exUS@s~GXn!d5h$>W
zSV0oJ5Q&_`%KXxj;vzPXEIUYo2O^Q1pOTtWT*Ltq=L8X;SS;cOv3Nkr_#ny(5_3{Z
zN>Yo9c##Ej@=HoG^U{m>7#J9Cv1JsOBqnD^aTG&66D5=vpPW-#T#{N;9A6NhoRe5w
zypo|v6l6At_~q<j6%(ACk)NLv<5HAbk(v`9oSK)JUlboul%JKFToO~BQK?%D7Sb(%
z3Wa+_#v~`^<Rm2~XBX=gRNmsS$<0qG%}KQb1y!*S0|NsGBL@=?lL(^#qYNVtBM*}R
FBLIvFxiA0#
diff --git a/WHY/__pycache__/config.cpython-39.pyc b/WHY/__pycache__/config.cpython-39.pyc
deleted file mode 100644
index 12e7a4d1fcdf69454296ad09a52fbe2f581951a7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1047
zcmYe~<>g{vU|@*f9FfGw#=!6x#6iX!3=9ko3=9m#M;I6wQW&BbQW#U1au{=&qL^}-
zqnLA9qF8cSqgWY1;><a0x$IHwxg1d(Abu2Q3S$&k3S$&^3S$&cIztM}BE~4*RHhWx
z6t)!hRNfShUY01nROS@U6s{ER6rL2`6uuPxUbZOyROS?c6u}gs6yX#RsF*-1bBZWf
zObjk2n97_Y4i@8uiwUK&r1GUmq)7HMMG2>}rV6L>rwXJBr3yB)Mv0_I1v6+$S1EFZ
zWMmdAWELwVDx~Bm7nc-e=A|p7<rgU==jWwmrt5LN1O<U6%PqFx)ST4hl3Q%SIhiS`
zMYouP^2=|rIp^n;=H_WK-C|1yvu-gL<(F%+{u1_0%uZEs&PgmT&P>ZpPAtjH&#RL3
zEzK#(%t=g2%|VljVs*;NPb#kB_RG&Ku2k^N&(ABa;)QUWGmDaQQj3c~!C%D(afO0Q
zVo73gYRStJ3=9mKEVo$85_3vZZ?TqSmgJ<~VlB^1Dap9So?ig6wzx{ruQWF)wMZd9
zO`$k3w;(6AI346EhJxu15C%gglu@wU;bjT~14HHnMg|5=wjyo@28JR~s<_2kT#{H+
za*H`NFXa|XaY<@H5f1|c1G3Rz&!!f?WM*Jsc*z7JL_h>1NSP4A1#YQ{C8b5F#hEXd
z85pXBJ@eA?i*gf7GRvUBm0Fy+1Y|iQ*aAOI(Oc~C@hSPq@$peSN%`5S8G5<-DXBTd
zMIbARK$aD;fLzJSz`zj23sI4iSeaj1Qe4Cal3-_GV7SFtaf`7silew7HMyiHG3ORr
zaeir0a%vP`3M3$l<MR@8Q;XsJ_+oHuNAW=eEWQ{V>rs5kpeRi(hVl8+px%KAaAoGD
z!Px8&LyDu=GV=;bONv)A6iI<x1R{Ppcv!^*Cuij6=ft=arB<Zo#0RJ5W#$*f2NdOJ
zr6!lelxI}x7K4R!3!p;b9+5H7bXib&i^C>2KczG$)eaQI#UTs~3@pqNi~>w7j4WWx
Z!NJ1F1cHCrSfMNs?>8Ge(L4?wMgZP;BH91|
diff --git a/examples/README.rst b/examples/README.rst
new file mode 100644
index 0000000..6418f19
--- /dev/null
+++ b/examples/README.rst
@@ -0,0 +1,70 @@
+# WHY Senior Project
+
+## Installing WHY
+
+There are two way in which the `WHY` package can be installed.
+First, follow the [prerequisite](#prerequisites) instructions.
+IF you do not need to rebuild documentation or make modifications to the library, follow the instructions under [User Installation](#user-installation).
+Otherwise, follow the instructions under [Developer Installation](#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](https://docs.python.org/3/library/venv.html).
+
+API documentation requires the use of `sphinx` which will require installing `Cmake`. Installation instructions can be found [here](https://cmake.org/install/).
+
+### User Installation
+
+First you must clone the repository using the following bash command.
+```bash
+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.
+
+```bash
+pip install .
+```
+
+### Developer Installation
+Developers need an additional tool, `clang-format` in order to run the precommit script.
+
+Install via Ubuntu.
+```bash
+apt-get install clang-format
+```
+Install via MacOSX with homebrew.
+```bash
+brew install clang-format
+```
+Install via [installer](https://llvm.org/builds/) or using chocolatey via.
+```bash
+choco install llvm
+```
+### Bokeh Server Developer Mode
+To automatically update the server with the new scripts run the following in the command line:
+
+Linux/MacOs
+```bash
+bokeh serve --show app_name.py --dev
+```
+
+Windows
+```bash
+python -m bokeh serve --show app_name.py --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.
\ No newline at end of file
diff --git a/WHY/__init__.py b/examples/__init__.py
similarity index 100%
rename from WHY/__init__.py
rename to examples/__init__.py
diff --git a/examples/decision_tree/main.py b/examples/decision_tree/main.py
index 1047f2b..3ca1536 100644
--- a/examples/decision_tree/main.py
+++ b/examples/decision_tree/main.py
@@ -3,9 +3,9 @@ import numpy as np
from sklearn.tree import export_graphviz
from subprocess import call
-from WHY.synthetic import SyntheticData, update_samples_or_dataset
-from WHY.data_vis import vis_synthetic
-import WHY.config as config
+from synthetic import *
+from data_vis import *
+import config as config
from bokeh.io import curdoc
from bokeh.models import ColumnDataSource, Select, Slider, Plot, Scatter, Row, Column
diff --git a/src/__init__.py b/src/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/src/__pycache__/config.cpython-39.pyc b/src/__pycache__/config.cpython-39.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0650c2a0dbcb056cd227becbdf4da2adf5f0706d
GIT binary patch
literal 1047
zcmYe~<>g{vU|_gCDKd$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HY/__pycache__/data_vis.cpython-39.pyc b/src/__pycache__/data_vis.cpython-39.pyc
similarity index 84%
rename from WHY/__pycache__/data_vis.cpython-39.pyc
rename to src/__pycache__/data_vis.cpython-39.pyc
index dc3c987c3f10c75eddd994b7046cb9b17e8c9d74..8feeafb82a19ab1115a80b71c143fc42a91b4412 100644
GIT binary patch
delta 58
zcmZ3<wvvrIk(ZZ?fq{X+aY^JxZcQf146B&p<c$3MoS2lN)QZ%c_~O*O%>1JGg2}#2
OQq09g$&<5~_5%Rje-c&z
delta 58
zcmZ3<wvvrIk(ZZ?fq{WRZ*#;(ZcQdh5388q<c$3MoEVp))QZ%c_~6vM%>1JGfXTj0
OQq18Vk(0BS_5%RQKM`R7
diff --git a/WHY/__pycache__/synthetic.cpython-39.pyc b/src/__pycache__/synthetic.cpython-39.pyc
similarity index 70%
rename from WHY/__pycache__/synthetic.cpython-39.pyc
rename to src/__pycache__/synthetic.cpython-39.pyc
index 5e3f6a298e564f8428ef74532d0f57c745274ead..7bbc8f7ea736dca24a07880b5f7664624267837e 100644
GIT binary patch
delta 564
zcmZqBY|!LR<mKgJU|?YIToSpFTZ!2$!z!jYIU_$mCnlvRwIVeqzBn~6GruUlpeR2p
zHMu0FJfl(<BBTowDlSUioXotQiSgECVYWO*xyemz{)|eKFR>Xg%57$5uV7@<*j&TG
z$;v1{xs5l0O_zazp~zrzBZn}*F#`ib4Tx(3A`~X`@!6tFw}E89(#qJRC%~mu(4^Hs
zhR=aXYYG?XF)%RP;!8;^Ni0q+i7!sgNlh*(vX~sgZ_lj(Qf3As%qP#|&tP)^F-<4)
z2rOXq+`LxcCZoLyNQ4(eD1ZoM1_lN{O+K)hMV25D3lPD^z`zj24l%m8$QmSM10rlE
z9~Dv&a%5m&&}1!g1BtkU2#?9Xg(5XUI&blpCFYc-#+PIi<(HJ?q^4-f73qN7%bHi3
zTToe~3Sv*L71kHH#gUYsotmMSnP0>XvTgDnVaX(CkTf4eq98FRwWK7qxCj)jU<cmf
z0C_sTEVH<X8)PjHi0}jvejozm{9By)dGW~^iFxU%$j$~ygIrxCF<DSRc(Rv>832aj
Bhw=ab
delta 559
zcmZqBY|!LR<mKgJU|?W)xjteew-U3NhgD2)az=iBPK--YYDH>Jd~j-BW`0q8Kv8~H
zYH~?Tc}AsfF<3~q04fyj5xF^;c|8+j)MR0{JVx2cO>F**ijyy~88FIjW@fKoWK`c=
z!@<eQC^xx{H-Sxufq|h&e{v&-FuxH4149jnYYZafC-d>yqD!}dWWdr&XwqCD-4npl
zlk@nTkTj}+WafZn7#J8dg^P3<7#MExr6iUl7N?fP7pLZ=CYKbMPY&U?=T-+PGX)W5
zljregu-Su{CX;yt7BG5jUMp~u(OwxO!V4ngL4*<m1B0I?AK1(y3y_F8h+qR*!45IH
zxX215WDO#0CLa}25pn>zgSE&NB;p1l+$aAQiqr(@yv1LZm{Xb>Uy@OjUs95jnxZLJ
zqzy8RHLo<cpt4AXfq@}va;>nwKomz(es*exUS@s~J4nIgJ;IVnP9SMMh(tkRPHIU>
zYH<-LM!^n@;sAL%zAUr2h#O=r4~Xyp5q=;7<osKl`FZil8Hsu6smRU-NrPNnBr#b~
KKzOp3h#3H7nT5Xq
diff --git a/WHY/config.py b/src/config.py
similarity index 100%
rename from WHY/config.py
rename to src/config.py
diff --git a/WHY/data_vis.py b/src/data_vis.py
similarity index 100%
rename from WHY/data_vis.py
rename to src/data_vis.py
diff --git a/WHY/synthetic.py b/src/synthetic.py
similarity index 100%
rename from WHY/synthetic.py
rename to src/synthetic.py
--
GitLab