-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Merge dev_postgresql into the master branch #1115
Merged
Merged
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
264f9e0
Add DeprecationWarning ignore message to the running script of cnn ex…
wannature 468c34a
Merge pull request #1053 from wannature/singa_v32
chrishkchris 8edcb96
Add training scripts for xceptionnet
374fef4
Merge pull request #1056 from zmeihui/23-4-27
lzjpaul 0f16a27
mlp model examples on top of postgresql
wannature a39f616
Merge pull request #1057 from wannature/singa_v33
lzjpaul df937b0
readme for malaria prediction with cnn model
liuchangshiye 8aca66c
Merge pull request #1060 from liuchangshiye/malaria-cnn
lzjpaul 2f78a24
add shell command file to run the codes
liuchangshiye 0dce2a4
Merge pull request #1064 from liuchangshiye/malaria-cnn
lzjpaul 12b9204
Init the model selection examples, and add README.md
NLGithubWP 32f018a
Merge pull request #1065 from NLGithubWP/add_model_selection_psql
lzjpaul f4d820f
Init armnet examples, add README.md
solopku 8261ada
Merge pull request #1066 from solopku/dev-postgresql
lzjpaul 10a7fc9
Add data loader for malaria dataset
liuchangshiye 1970158
Merge pull request #1070 from liuchangshiye/dev-postgresql
lzjpaul 4257283
add cnn model for malaria detection
lemonviv c847d46
Merge pull request #1072 from lemonviv/dev-postgresql
lzjpaul a76f3d7
add mlp model for malaria detection
liuchangshiye 377582f
Merge pull request #1073 from liuchangshiye/mlp-malaria-cnn
nudles d9831d9
Add the training file for model selection
NLGithubWP 1dc8487
Merge pull request #1074 from NLGithubWP/add_train_mlp
chrishkchris ba5f573
Add SGD optimizer for model selection
NLGithubWP b56eaab
Merge pull request #1075 from NLGithubWP/update_train_mlp
chrishkchris 53c664f
Add implementation for a single optimization step in model selection
NLGithubWP 1e55cfb
Merge pull request #1076 from NLGithubWP/single_opt_ms
lzjpaul dc1a7f3
Increase the step counter, learning rate for the model selection SGD
liuchangshiye bb878cd
Merge pull request #1078 from liuchangshiye/model-selection-psql
lzjpaul 7f0152a
Add implementation for get and set states
NLGithubWP af1634c
Merge pull request #1080 from NLGithubWP/update_train_mlp_
nudles 96b0799
Add the implementation for model selection optimizer
daoducanhc 5bdb8fb
Merge pull request #1082 from daoducanhc/chris-sep-5th
chrishkchris 3f1d9cc
Add implementation for mlp models in model selection
d47766c
Merge pull request #1083 from zmeihui/23-9-5-ms
lzjpaul 94e8e43
Add implementation for sum error loss for model selection
daoducanhc 210d7a6
Merge pull request #1085 from daoducanhc/chris-sep-6th
chrishkchris 0c151e7
Add the backward implementation for sum error loss
NLGithubWP ec2d81c
Merge pull request #1086 from NLGithubWP/add_model
lzjpaul 2cf2a5b
Add the SumErrorLayer implementation
liuchangshiye e6cb95f
Merge pull request #1088 from liuchangshiye/model-selection-psql-msmlp
nudles 05cd43c
Create the ms_model_mlp folder for dynamic model creation
915d7d9
Merge pull request #1089 from zmeihui/23-9-7-ms-model
lzjpaul d14fc3b
Add the autograd implementation for msmlp
daoducanhc c5f210e
Merge pull request #1090 from daoducanhc/chris-sep-7th
chrishkchris 62a94cd
Add train one batch function for the dynamic model
KimballCai 5b36459
Merge pull request #1091 from KimballCai/dev-postgresql
lzjpaul 9e955b1
Add create model function for the dynamic model
liuchangshiye 20c9d79
Merge pull request #1092 from liuchangshiye/model-selection-psql-ms-m…
lzjpaul f84ebe5
Add training process for the dynamic model
NLGithubWP 5df0cec
Merge pull request #1093 from NLGithubWP/update_model
lzjpaul 41e260d
Add autograd implementation for dynamic model creation
9d89392
Merge pull request #1094 from zmeihui/23-9-11-autograd
chrishkchris 1d2f6e7
Debug the training process for training free model evaluation metric
NLGithubWP 7154dad
Merge pull request #1095 from NLGithubWP/dev-postgresql
lzjpaul 369f0f2
Training process for mlp models with varying layer sizes
lzjpaul cc741f5
Merge pull request #1096 from lzjpaul/23-9-14-ms
chrishkchris 2c955ee
Training script for model selection
lzjpaul aa5cc42
Merge pull request #1097 from lzjpaul/23-9-15-ms
chrishkchris 957caaf
Update the training file for dynamic models
Wu-Junran 95a5536
Merge pull request #1099 from Wu-Junran/junran-dev-postgresql
lzjpaul 593dc78
Add the doap file for the project
22252e7
Merge pull request #1100 from zmeihui/23-9-20-doap
lzjpaul 41a3772
Add the training script for CNN models
daoducanhc 931a312
Merge pull request #1101 from daoducanhc/chris-sep-22th
lzjpaul a7f59a1
Add the training script for models using MPI
NLGithubWP 41aa437
Merge pull request #1102 from NLGithubWP/add_train_mpi
lzjpaul c7752fa
Model class file for dynamic models
NLGithubWP 5c71962
Merge pull request #1103 from NLGithubWP/dynamic_models
lzjpaul 5b8d928
Add the ModelMeta for dynamic models
lzjpaul 647e5f3
Merge pull request #1104 from lzjpaul/23-10-3-modelmeta
chrishkchris 26deb2c
Update the ModelMeta class
daoducanhc a73c7b2
Merge pull request #1105 from daoducanhc/chris-oct-5th
chrishkchris 8f3a7ab
Add the running script for model selection
aa683ce
Merge pull request #1106 from zmeihui/23-10-6-run
lzjpaul 1e4e272
Add the training script for model selection
NLGithubWP 772ba55
Merge pull request #1107 from NLGithubWP/add_ms_model
lzjpaul 3b9658f
Add data processing functions for model selection
lzjpaul 30b7980
Merge pull request #1108 from lzjpaul/23-10-8-data-process
chrishkchris 3ce7c33
Add the optimizer for model selection
9d8a2f5
Merge pull request #1109 from zmeihui/23-10-9-optimizer
lzjpaul 063effd
Add the implementation of MSSGD for model selection
daoducanhc 830e1f7
Merge pull request #1110 from daoducanhc/chris-oct-11th
lzjpaul 619d119
Add the implementation of a single optimization step for model selection
NLGithubWP 31ea937
Merge pull request #1111 from NLGithubWP/add_opt_ms
chrishkchris 850bcf1
Add the implementation for the model selection example
lzjpaul b911ce2
Merge pull request #1112 from lzjpaul/23-10-24-v410
chrishkchris daa9c17
Update license headers for v4.1.0
lzjpaul 3990365
Merge pull request #1113 from lzjpaul/23-10-24-v410-1
chrishkchris b25cd92
Add the release notes for v4.1.0
17ac0ad
Merge pull request #1114 from zmeihui/23-10-25-release-note
lzjpaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0"?> | ||
<?xml-stylesheet type="text/xsl"?> | ||
<rdf:RDF xml:lang="en" | ||
xmlns="http://usefulinc.com/ns/doap#" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:asfext="http://projects.apache.org/ns/asfext#" | ||
xmlns:foaf="http://xmlns.com/foaf/0.1/"> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<Project rdf:about="https://singa.apache.org/"> | ||
<created>2023-09-06</created> | ||
<license rdf:resource="https://spdx.org/licenses/Apache-2.0" /> | ||
<name>Apache SINGA</name> | ||
<homepage rdf:resource="https://singa.apache.org/" /> | ||
<asfext:pmc rdf:resource="https://singa.apache.org" /> | ||
<shortdesc>A Distributed Deep Learning Library</shortdesc> | ||
<description>Apache SINGA is an Apache top-level project for developing an open-source machine learning library. It provides a flexible architecture for scalable distributed training, is extensible to run over a wide range of hardware, and has a focus on healthcare applications.</description> | ||
<mailing-list rdf:resource="https://singa.apache.org/docs/mail-lists/" /> | ||
<download-page rdf:resource="https://singa.apache.org/docs/downloads/" /> | ||
<programming-language>C++</programming-language> | ||
<category rdf:resource="https://projects.apache.org/category/big-data" /> | ||
<release> | ||
<Version> | ||
<name>Apache SINGA 4.0.0</name> | ||
<created>2023-04-07</created> | ||
<revision>4.0.0</revision> | ||
</Version> | ||
</release> | ||
<repository> | ||
<SVNRepository> | ||
<location rdf:resource="https://dist.apache.org/repos/dist/dev/singa/"/> | ||
<browse rdf:resource="https://dist.apache.org/repos/dist/release/singa/"/> | ||
</SVNRepository> | ||
</repository> | ||
<repository> | ||
<GitRepository> | ||
<location rdf:resource="https://github.com/apache/singa"/> | ||
<browse rdf:resource="https://github.com/apache/singa"/> | ||
</GitRepository> | ||
</repository> | ||
<maintainer> | ||
<foaf:Person> | ||
<foaf:name>LUO ZHAOJING</foaf:name> | ||
<foaf:mbox rdf:resource="mailto:[email protected]"/> | ||
</foaf:Person> | ||
</maintainer> | ||
</Project> | ||
</rdf:RDF> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
## ARM-Net: Adaptive Relation Modeling Network for Structured Data | ||
|
||
![version](https://img.shields.io/badge/version-v3.5-green) | ||
![python](https://img.shields.io/badge/python-3.8.3-blue) | ||
![singa](https://img.shields.io/badge/singa-3.1.0-orange) | ||
|
||
This folder contains our Singa implementation of [ARM-Net: Adaptive Relation Modeling Network for Structured Data](https://dl.acm.org/doi/10.1145/3448016.3457321). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The folder does not have the source code files.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this release, we will remove this part |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
# Singa for Malaria Detection Task | ||
|
||
## Malaria | ||
|
||
Malaria is caused by parasites and could be transmitted through infected mosquitoes. There are about 200 million cases worldwide, and about 400,000 deaths per year, therefore, malaria does lots of harm to global health. | ||
|
||
Although Malaria is a curable disease, inadequate diagnostics make it harder to reduce mortality, as a result, a fast and reliable diagnostic test is a promising and effective way to fight malaria. | ||
|
||
To mitigate the problem, we use Singa to implement a machine learning model to help with Malaria diagnosis. The dataset is from Kaggle https://www.kaggle.com/datasets/miracle9to9/files1?resource=download. Please download the dataset before running the scripts. | ||
|
||
## Structure | ||
|
||
* `data` includes the scripts for preprocessing Malaria image datasets. | ||
|
||
* `model` includes the CNN model construction codes by creating | ||
a subclass of `Module` to wrap the neural network operations | ||
of each model. | ||
|
||
* `train_cnn.py` is the training script, which controls the training flow by | ||
doing BackPropagation and SGD update. | ||
|
||
## Command | ||
```bash | ||
python train_cnn.py cnn malaria -dir pathToDataset | ||
``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same set of files are under MIT and PostgreSQL?
if these are written by SINGA contributor (i.e., not copied from other projects), they should just be released under apache license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these source files are written by us, so they should be released under apache license