-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from aidotse/dev-auto-tuner
Dev auto tuner
- Loading branch information
Showing
47 changed files
with
308 additions
and
10,900 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__pycache__ | ||
*.pyc | ||
.vscode |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
datasets | ||
__pycache__ | ||
.vscode | ||
*.pyc | ||
.vscode | ||
.venv |
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
count,type,schedule_id,min_accounts,max_accounts,min_amount,max_amount,min_period,max_period,bank_id,is_sar,source_type | ||
50,stack,2,10,20,100,1000,1,28,bank,True,CASH | ||
1,fan_out,2,5,5,100,1000,2,28,bank,True,TRANSFER | ||
1,fan_in,2,5,5,100,1000,2,28,bank,True,TRANSFER | ||
1,cycle,2,5,5,100,1000,2,28,bank,True,TRANSFER | ||
1,bipartite,2,5,5,100,1000,2,28,bank,True,TRANSFER | ||
1,stack,2,5,5,100,1000,2,28,bank,True,TRANSFER | ||
1,gather_scatter,2,6,6,100,1000,2,28,bank,True,TRANSFER | ||
1,scatter_gather,2,6,6,100,1000,2,28,bank,True,TRANSFER |
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 |
---|---|---|
@@ -1,18 +1,62 @@ | ||
# Base image | ||
FROM ubuntu:22.04 | ||
|
||
WORKDIR /app | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Set the working directory | ||
WORKDIR /flib | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY federated-learning-v2/requirements.txt . | ||
wget \ | ||
openjdk-11-jdk \ | ||
python3.10 \ | ||
python3-pip && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Download and install Maven | ||
RUN wget https://downloads.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -O - | tar xzf - -C /usr/share && \ | ||
ln -s /usr/share/apache-maven-3.9.6 /usr/share/maven && \ | ||
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn | ||
|
||
# Install java dependencies | ||
COPY AMLsim/jars AMLsim/jars | ||
RUN mvn install:install-file \ | ||
-Dfile=AMLsim/jars/mason.20.jar \ | ||
-DgroupId=mason \ | ||
-DartifactId=mason \ | ||
-Dversion=20 \ | ||
-Dpackaging=jar \ | ||
-DgeneratePom=true | ||
|
||
# Set the default Python version to Python 3.10 | ||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt . | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
COPY federated-learning-v2/ . | ||
# Setup AMLsim | ||
WORKDIR /flib/AMLsim | ||
COPY AMLsim/scripts scripts | ||
COPY AMLsim/src src | ||
COPY AMLsim/pom.xml pom.xml | ||
RUN mvn clean package -DskipTests | ||
RUN sh scripts/run.sh | ||
|
||
# Setup preprocess | ||
WORKDIR /flib | ||
COPY preprocess/ preprocess/ | ||
|
||
# Setup auto-aml-data-gen | ||
WORKDIR /flib/auto-aml-data-gen | ||
COPY auto-aml-data-gen/classifier.py classifier.py | ||
COPY auto-aml-data-gen/main.py main.py | ||
COPY auto-aml-data-gen/optimizer.py optimizer.py | ||
COPY auto-aml-data-gen/simulate.py simulate.py | ||
COPY auto-aml-data-gen/utils.py utils.py | ||
RUN mkdir data | ||
|
||
RUN echo "hello" | ||
# Start with a bash shell | ||
ENTRYPOINT ["python3", "main.py"] |
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,2 @@ | ||
param_files | ||
data |
This file was deleted.
Oops, something went wrong.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.