Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infvisfrontendmlbackend #444

Merged
merged 157 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
007a49f
update
HyunjunA Oct 31, 2022
96f1865
Merge pull request #374 from HyunjunA/infvisfrontendmlbackend
jay-m-dev Nov 1, 2022
5165fbc
Merge pull request #375 from EpistasisLab/master
HyunjunA Nov 1, 2022
03acc85
Merge pull request #1 from EpistasisLab/infvisfrontendmlbackend
HyunjunA Nov 1, 2022
71b618b
Add files
HyunjunA Nov 1, 2022
44cb23b
add iris_Comma.csv
HyunjunA Nov 1, 2022
7e73075
Delete test.py
HyunjunA Nov 1, 2022
634a4e8
Delete temp.json
HyunjunA Nov 1, 2022
ed11b56
Merge pull request #376 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 1, 2022
acdfb8a
video.mp4
HyunjunA Nov 2, 2022
423192d
Delete video.mp4
HyunjunA Nov 2, 2022
c7945b9
update video
HyunjunA Nov 2, 2022
3b60642
update
HyunjunA Nov 2, 2022
c34243f
update
HyunjunA Nov 2, 2022
ce19e29
update
HyunjunA Nov 2, 2022
eee89df
Merge pull request #378 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 2, 2022
18c7dc3
original
HyunjunA Nov 3, 2022
a3b6d77
Merge pull request #379 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
ba22c9b
Updated Aliro
HyunjunA Nov 3, 2022
3e406cd
Merge pull request #380 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
9a0f06d
Update web
HyunjunA Nov 3, 2022
d21e39f
Merge pull request #381 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
086fed7
Update aliroed production webpage
HyunjunA Nov 3, 2022
853d7fc
remove data
HyunjunA Nov 3, 2022
8d600a5
Merge pull request #382 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
2393d35
Update download file
HyunjunA Nov 3, 2022
bdec43d
Merge pull request #383 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
b16b611
intropage and productpage
HyunjunA Nov 3, 2022
26c0e24
Merge pull request #384 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
c411a0c
Update
HyunjunA Nov 3, 2022
2ed2886
updatae
HyunjunA Nov 3, 2022
db75582
Merge pull request #385 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 3, 2022
73744a1
update
HyunjunA Nov 4, 2022
f3fcd8e
cors issue
nickotto Nov 5, 2022
65cec54
static background, color-nick's idea
HyunjunA Nov 5, 2022
68e694f
change color (bg-success) and thumbnail images
HyunjunA Nov 5, 2022
aa9ceed
Update contact info
HyunjunA Nov 5, 2022
d952a0c
Merge pull request #386 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 5, 2022
f489590
Update favicon, card bottom color
HyunjunA Nov 6, 2022
ea17862
Merge pull request #387 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 6, 2022
41f2974
update carousel in intropage for RP and product page for web
HyunjunA Nov 6, 2022
146462f
fix the "loading aliro ed..." to locate always in the webpage
HyunjunA Nov 7, 2022
50036b6
Merge pull request #388 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 7, 2022
30c20e1
video responsive
HyunjunA Nov 7, 2022
50bf147
Merge pull request #389 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 7, 2022
400d179
Update responsive video frame
HyunjunA Nov 7, 2022
96f71cd
Merge pull request #390 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 7, 2022
23afbb6
test
HyunjunA Nov 7, 2022
97e42ed
remove text decoration underline under < and >
HyunjunA Nov 7, 2022
3dd90a9
color change_frontend and d3.js
HyunjunA Nov 7, 2022
2591b62
Aliro Ed to Aliro-Ed
HyunjunA Nov 8, 2022
2056fb1
Merge pull request #391 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 8, 2022
ed62e05
other_versions
HyunjunA Nov 8, 2022
a383fb2
temp solution for running svd
HyunjunA Nov 10, 2022
3cf65a8
fix tooltip issue when running ai recommender. change color in the gr…
HyunjunA Nov 11, 2022
4d9d23b
Merge pull request #393 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 11, 2022
a223b4f
add axis label
HyunjunA Nov 14, 2022
1ee33d9
add responsive and interactive feature importance and learning curve …
HyunjunA Nov 15, 2022
0ef2329
set #topaliro border-radius 0
HyunjunA Nov 15, 2022
4c05859
Updated contact email
Nov 16, 2022
bc5da96
update email address in the product web page
HyunjunA Nov 17, 2022
af61c07
Update the "About the Project" section of the Aliro Github page.
HyunjunA Nov 17, 2022
353729d
update interactive charts in PCA and TSNE
HyunjunA Nov 17, 2022
dd00f57
Upate README.md
HyunjunA Nov 17, 2022
acfb7c8
data
HyunjunA Nov 21, 2022
18aec4e
remove fileupload.test.js.snap
HyunjunA Nov 21, 2022
39dce70
remove fileupload snap
HyunjunA Nov 21, 2022
b11ca6b
Merge pull request #395 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
8669eba
remove json
HyunjunA Nov 21, 2022
4a67a5c
Merge pull request #396 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
af1f337
set JEST_TIMEOUT 100000
HyunjunA Nov 21, 2022
50bb06f
Merge pull request #397 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
712951d
update fileupload.test.js
HyunjunA Nov 21, 2022
cdf0da9
Merge pull request #398 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
5080cd2
remove json
HyunjunA Nov 21, 2022
af2173f
Merge pull request #399 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
5f1c7cd
update delay time
HyunjunA Nov 21, 2022
578142b
Merge pull request #400 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
3070aec
Updata fileUpload
HyunjunA Nov 21, 2022
4b7c35a
Merge pull request #401 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
adce36b
remove fileupload
HyunjunA Nov 21, 2022
8d4ce3a
Merge pull request #402 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 21, 2022
c5168cd
update fileupload
HyunjunA Nov 22, 2022
cc0aa32
Merge pull request #404 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
b360ddb
fileupload
HyunjunA Nov 22, 2022
c761adc
update fileupload
HyunjunA Nov 22, 2022
4cef971
Merge pull request #405 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
4cd0577
update fileupload
HyunjunA Nov 22, 2022
b8e970d
Merge pull request #406 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
6952c47
update aliro_tests.yml
HyunjunA Nov 22, 2022
e2f7232
Merge pull request #407 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
3658009
update fileupload
HyunjunA Nov 22, 2022
420f5f1
Merge pull request #408 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
48c8d40
update fileupload
HyunjunA Nov 22, 2022
d5eb399
Merge pull request #409 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
845f6dc
update fileupload
HyunjunA Nov 22, 2022
1980d85
Merge pull request #410 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
43f2249
update fileupload testing
HyunjunA Nov 22, 2022
21c2d26
Merge pull request #411 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 22, 2022
a1ff76c
update FileUpload components
HyunjunA Nov 29, 2022
76353c8
Merge pull request #413 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
a9fdd72
Upload fileupload unit test
HyunjunA Nov 29, 2022
77b9bd0
Merge pull request #414 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
66b3b38
Update fileupload unit test
HyunjunA Nov 29, 2022
2971db6
Merge pull request #415 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
fedc618
update JEST_TIMEOUT in testUtils
HyunjunA Nov 29, 2022
9ca94e8
Merge pull request #416 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
46538e7
update delay time
HyunjunA Nov 29, 2022
427155f
Merge pull request #417 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
1559697
update runExperiment_regression.test.ts
HyunjunA Nov 29, 2022
e6f9b82
Merge pull request #418 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
1cae87f
update test
HyunjunA Nov 29, 2022
c8091d4
Merge pull request #419 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
023b479
update test
HyunjunA Nov 29, 2022
dea63ad
undo
HyunjunA Nov 29, 2022
9ec1ea9
Merge pull request #420 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
3acaf32
comment changes in skl_utils.py
HyunjunA Nov 29, 2022
b23d168
Merge pull request #421 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
eb116bc
origin
HyunjunA Nov 29, 2022
9ac6437
Merge pull request #422 from HyunjunA/infvisfrontendmlbackend
HyunjunA Nov 29, 2022
e74df10
comment plot_pca, plot_tsne, and plot_learning curve
HyunjunA Nov 30, 2022
4f7c768
comment new functions
HyunjunA Nov 30, 2022
0402a6a
remove #
HyunjunA Nov 30, 2022
da55f20
Merge pull request #423 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
d464767
test
HyunjunA Dec 1, 2022
8103472
uncomment plot_learning_curve
HyunjunA Dec 1, 2022
4f746b3
Merge pull request #424 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
8a3d167
comment plot_learning_curve, uncomment plot_pca 2d
HyunjunA Dec 1, 2022
df69ec8
uncomment plot_pca, comment plot_learning_curve
HyunjunA Dec 1, 2022
a2a6751
Merge pull request #425 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
7d6b128
update EXPECTED_MACHINE_ALGO_COUNT
HyunjunA Dec 1, 2022
5d747d4
Merge pull request #426 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
e635ee8
uncomment plot_tsne
HyunjunA Dec 1, 2022
df9fb48
Merge pull request #427 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
a41050b
comment plot_pca_2d, learning curve. and uncomment plot_tsne
HyunjunA Dec 1, 2022
a337c9b
Merge pull request #428 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
8194f72
uncomment plot_pca, comment learning curve and tsne
HyunjunA Dec 1, 2022
9247253
Merge pull request #429 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 1, 2022
b4e722d
test
HyunjunA Dec 5, 2022
a4e6949
Merge pull request #432 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
7cb5587
test learning curve
HyunjunA Dec 5, 2022
8400128
Merge pull request #433 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
a9e7a3a
update bodyparser.json limit
HyunjunA Dec 5, 2022
efa20e4
Merge pull request #434 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
7160099
remove learning_curve image
HyunjunA Dec 5, 2022
65f2c54
Merge pull request #435 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
1b732eb
remove plot_learning curve add plot_tsne
HyunjunA Dec 5, 2022
beb1bca
Merge pull request #436 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
21b0948
test plot_tsne
HyunjunA Dec 5, 2022
efe7055
Merge pull request #437 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 5, 2022
3632c99
handle exceptional case in the plot_learningcurve
HyunjunA Dec 6, 2022
394f099
update to deal with the case when wrong hyper-parameters are given fo…
HyunjunA Dec 6, 2022
95189fd
Merge pull request #438 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 6, 2022
0e61573
set count < 20 in runExperiment_classification.test.ts
HyunjunA Dec 7, 2022
17c5613
Merge pull request #441 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 7, 2022
c0a22dd
change seesionStorage with localStorage
HyunjunA Dec 7, 2022
2522871
Merge pull request #443 from HyunjunA/infvisfrontendmlbackend
HyunjunA Dec 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
# Docker production build environment
TAG=rpi-0.18
# TAG=rpi-0.18
TAG=0.18
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
.vscode
.vscode

.xz
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ Browse the repo:
About the Project
=================

Aliro is actively developed by the [Institute for Biomedical Informatics](http://upibi.org) at the University of Pennsylvania.
Contributors include Heather Williams, Weixuan Fu, William La Cava, Josh Cohen,
Steve Vitale, Sharon Tartarone, Randal Olson, Patryk Orzechowski, and Jason Moore.
Aliro is actively developed by the Center for Artificial Intelligence Research (CAIR) in the [Department of Computational Biomedicine](https://www.cedars-sinai.edu/research/departments-institutes/computational-biomedicine.html) at [Cedars-Sinai Medical Center](https://www.cedars-sinai.org/) in Los Angeles.
Contributors include Hyunjun Choi, Miguel Hernandez, Nick Matsumoto, Jay Moran, Paul Wang, and Jason Moore (PI).

Cite
====
Expand Down
2 changes: 1 addition & 1 deletion ai/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def initialize_recommenders(self, rec_class):
recArgs = self.DEFAULT_REC_ARGS[pred_type]
recArgs['ml_p'] = ml_p

recArgs['serialized_rec_directory'] = 'data/recommenders/pennaiweb'
recArgs['serialized_rec_directory'] = '/appsrc/data/recommenders/pennaiweb'
recArgs['load_serialized_rec'] = "if_exists"

if kb is not None:
Expand Down
37 changes: 37 additions & 0 deletions ai/recommender/surprise_recommenders.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,49 @@ def _reconstruct_training_data(self, results_data, results_mf=None,
"""
# update trained dataset models and hash table
super().update(results_data, results_mf, source)

print('results_data', results_data)
print('results_mf', results_mf)
print('source', source)

# updates self.results_df and self.trainset
self._update_training_data(results_data, shuffle=True)
# check whether the set train data matches the pickled recommender's
# training data.
rowHashes = hash_pandas_object(self.results_df).values



# test
data = [10,20,30,40,50,60]
df = pd.DataFrame(data, columns=['Numbers'])
test_df=hash_pandas_object(df).values

print('test_df', test_df)



print('self.results_df', self.results_df)

print('rowHashes', rowHashes)
newHash = hashlib.sha256(rowHashes).hexdigest()

# for rowHash in rowHashes:
# print('rowHash: ', rowHash)

print('newHash', newHash)

# test
test_newHash = hashlib.sha256(b"Nobody inspects the spammish repetition").hexdigest()
print('test_newHash: ', test_newHash)

# temporary fix for pickled recommender's not having a hash
hasattr(self, 'results_df_hash')

print('self.results_df_hash', self.results_df_hash)

print('newHash == self.results_df_hash',newHash == self.results_df_hash)

if hasattr(self, 'results_df_hash'):
if newHash == self.results_df_hash:
logger.info('results_df hashes match')
Expand Down
72 changes: 71 additions & 1 deletion ai/sklearn/config/classifiers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
classifier_config_dict = {

# Original six classifiers
'sklearn.tree.DecisionTreeClassifier': {
'params': {
'criterion': ["gini", "entropy"],
Expand Down Expand Up @@ -75,5 +76,74 @@
'bootstrap': [True, False],
'min_weight_fraction_leaf': [0.0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45]
}
}
},





# new classifiers
# 'sklearn.ensemble.AdaBoostClassifier': {
# 'params': {
# 'n_estimators': [100, 500],
# 'learning_rate': [0.01, 0.1, 1],
# 'algorithm': ["SAMME", "SAMME.R"]
# }
# },


# 'sklearn.cluster.KMeans': {
# 'params': {
# 'n_clusters': [2, 3, 4, 5, 6, 7, 8, 9, 10],
# 'init': ["k-means++", "random"],
# 'n_init': [10, 20, 30],
# 'max_iter': [100, 200, 300, 400, 500],
# 'tol': [1e-5, 1e-4, 1e-3, 1e-2, 1e-1]
# }
# },

# 'sklearn.naive_bayes.GaussianNB': {
# 'params': {
# 'var_smoothing': [1e-9, 1e-8, 1e-7, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1]
# }
# },

# 'sklearn.naive_bayes.MultinomialNB': {
# 'params': {
# 'alpha': [0.0, 0.0001, 0.001, 0.01, 0.1, 1, 10, 100],
# 'fit_prior': [True, False]
# }
# },

# 'sklearn.naive_bayes.BernoulliNB': {
# 'params': {
# 'alpha': [0.0, 0.0001, 0.001, 0.01, 0.1, 1, 10, 100],
# 'fit_prior': [True, False]
# }
# },

# 'sklearn.neural_network.MLPClassifier': {
# 'params': {
# 'hidden_layer_sizes': [(100,), (100, 100), (100, 100, 100)],
# 'activation': ["identity", "logistic", "tanh", "relu"],
# 'solver': ["lbfgs", "sgd", "adam"],
# 'alpha': [0.0001, 0.001, 0.01, 0.1, 1, 10, 100],
# 'learning_rate': ["constant", "invscaling", "adaptive"],
# 'learning_rate_init': [0.0001, 0.001, 0.01, 0.1, 1, 10, 100],
# 'power_t': [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
# 'max_iter': [100, 500, 1000, 2000, 5000, 10000],
# 'tol': [1e-5, 1e-4, 1e-3, 1e-2, 1e-1],
# 'momentum': [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
# 'nesterovs_momentum': [True, False],
# 'early_stopping': [True, False],
# 'beta_1': [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
# 'beta_2': [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
# 'epsilon': [1e-5, 1e-4, 1e-3, 1e-2, 1e-1],
# 'validation_fraction': [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
# 'n_iter_no_change': [5, 10, 20, 50, 100]
# }
# }



}
2 changes: 1 addition & 1 deletion config/common.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ MACHINE_HOST=machine
MACHINE_CONFIG=/appsrc/config/machine_config.json
MACHINE_SHAP_SAMPLES_KERNEL_EXPLAINER=50
MACHINE_SHAP_SAMPLES_OTHER_EXPLAINER=100
EXP_TIMEOUT=10
EXP_TIMEOUT=100
DT_MAX_DEPTH=6

STARTUP_DATASET_PATH=/appsrc/data/datasets/user
14 changes: 13 additions & 1 deletion config/machine_config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



{
"algorithms": ["DecisionTreeClassifier",
"GradientBoostingClassifier",
Expand All @@ -10,5 +13,14 @@
"SVR",
"KNeighborsRegressor",
"KernelRidge",
"RandomForestRegressor"]
"RandomForestRegressor",
"AdaBoostClassifier"
,"KMeans"
,"GaussianNB"
,"MultinomialNB"
,"BernoulliNB"
,"MLPClassifier"
]
}


Binary file modified data/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions docker/dbmongo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ WORKDIR /opt/

ARG docker_filepath=docker/dbmongo/files

# RUN apt-get update
# RUN apt-get install gpg wget
# RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
# RUN apt-get update


#add repo for mongodb
RUN echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
RUN apt-get update --fix-missing && \
Expand Down
3 changes: 3 additions & 0 deletions docker/lab/rpi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ RUN apt-get update --fix-missing && apt-get install -y \
# See: https://stackoverflow.com/a/58562728/1730417
# and: https://askubuntu.com/a/1176271/260220
RUN apt-get update && apt-get install -y software-properties-common
# RUN -E add-apt-repository 'ppa:deadsnakes/ppa'
# RUN -E add-apt-repository ppa:deadsnakes/ppa
# RUN add-apt-repository 'ppa:deadsnakes/ppa'
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install -y python3.7 python3.7-dev python3.7-distutils
Expand Down
Empty file modified docs/services/docker.fglab.service
100755 → 100644
Empty file.
Empty file modified lab/.gitignore
100755 → 100644
Empty file.
Empty file modified lab/api.raml
100755 → 100644
Empty file.
Empty file modified lab/db.js
100755 → 100644
Empty file.
Empty file modified lab/lab.config.js
100755 → 100644
Empty file.
9 changes: 7 additions & 2 deletions lab/lab.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,15 @@ var upload = multer(); // Store files in memory as Buffer objects
//app.set('superSecret',config.secret);
app.use(compression()); // Compress all Express requests
app.use(favicon(path.join(__dirname, "webapp/dist/favicon.ico"))); // Deal with favicon requests
// app.use(favicon(path.join(__dirname, "webapp/dist/BrainCircuit.ico"))); // Deal with favicon
app.use(express.static(path.join(__dirname, "webapp/dist"), {index: false, maxAge: '1d'})); // Static directory
app.use(morgan("tiny")); // Log requests
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
// app.use(bodyParser.urlencoded({extended: false}));
// app.use(bodyParser.json());

app.use(bodyParser.json({limit: "50mb"}));
app.use(bodyParser.urlencoded({limit: "50mb", extended: true, parameterLimit:50000}));

app.set('appPath', path.join(path.normalize(__dirname), 'webapp/dist'));
app.use(express.static(app.get('appPath')));

Expand Down
Empty file modified lab/test/mnist.json
100755 → 100644
Empty file.
Loading