-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv-setup.sh
executable file
·66 lines (57 loc) · 2.03 KB
/
env-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Navigate to the adaptive_misinformation directory
cd $(pwd)/adaptive_misinformation
# Create conda environment from environment.yml for adaptive_misinformation
echo "Creating conda environment for adaptive_misinformation...."
if ! conda env create -f environment.yml; then
echo "Error: Environment creation failed."
exit 1
fi
echo "Installing other packages and dependencies using setup.sh..."
if [ -f setup.sh ]; then
echo "Executing setup.sh..."
chmod +x ./setup.sh
bash setup.sh
fi
echo "Environment creation completed for adaptive_misinformation."
# Activate conda environment
echo "Activate conda environment..."
# Navigate to the prediction-poisoning directory
cd ../prediction-poisoning
# Create conda environment from environment.yml for prediction-poisoning
echo "Creating conda environment for prediction-poisoning..."
if ! conda env create -f environment.yml; then
echo "Error: Environment creation failed."
exit 1
fi
echo "Installing other packages and dependencies using setup.sh..."
if [ -f setup.sh ]; then
echo "Executing setup.sh..."
chmod +x ./setup.sh
bash setup.sh
fi
echo "Environment creation completed for prediction-poisoning."
# Activate conda environment
echo "Activate conda environment..."
# Navigate to the DeepSniffer directory
cd ../DeepSniffer
# Create conda environment from environment.yml for DeepSniffer
echo "Creating conda environment for DeepSniffer...."
if ! conda env create -f environment.yml; then
echo "Error: Environment creation failed."
exit 1
fi
echo "Environment creation completed for DeepSniffer."
# Activate conda environment
echo "Activate conda environment..."
# Navigate to the specified directory
cd ../ML-Doctor
# Create conda environment from environment.yml for ML-Doctor
echo "Creating conda environment for ML-Doctor..."
if ! conda env create -f environment.yml; then
echo "Error: Environment creation failed."
exit 1
fi
echo "Environment creation completed for ML-Doctor."
# Activate conda environment
echo "Activate conda environment..."