Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
BikeSharingLearner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hensel
BikeSharingLearner
Commits
0f39f499
Commit
0f39f499
authored
2 months ago
by
Tobias Hensel
Browse files
Options
Downloads
Patches
Plain Diff
Install vernünftig
parent
6b1bc1af
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+33
-3
33 additions, 3 deletions
README.md
install.bat
+4
-3
4 additions, 3 deletions
install.bat
install.sh
+8
-8
8 additions, 8 deletions
install.sh
with
45 additions
and
14 deletions
README.md
+
33
−
3
View file @
0f39f499
...
...
@@ -3,8 +3,38 @@
Teil einer Übung von ML Modul im Master.
zum installeren der nötigen Umgebung nutze die install.sh oder die install.bat
### Installation unter Linux
1.
Stelle sicher, dass [Mamba] installiert ist.
2.
Führe das Skript zur Einrichtung der Umgebung aus:
```
bash
chmod
+x install_env.sh
./install_env.sh
```
### Installation unter Windows
1.
Stelle sicher, dass [Mamba] installiert ist.
2.
Führe das Skript
`install.bat`
per Doppelklick oder im Terminal aus:
```
bat
install
.bat
```
### Aktivierung der Umgebung
zum aktivieren der Umgebung in Linux und Windows:
```
bash
conda activate bikesharingenv
```
und dann zum testen:
```
bash
python evaluate_model.py
```
zum aktivieren der Umgebung:
mamba activate bikesharingenv
This diff is collapsed.
Click to expand it.
install.bat
+
4
−
3
View file @
0f39f499
@echo
o
n
@echo
o
ff
REM Check if mamba is installed
where
mamba
>
nul
2
>
nul
...
...
@@ -8,7 +8,8 @@ if %errorlevel% neq 0 (
)
echo
Creating
environment
using
mamba
...
mamba
env
create
-f
environment
.yaml
call
mamba
activate
bikesharingenv
echo
Environment
'bikesharingenv'
created
.
echo
To
activate
it
,
run
:
echo
mamba
activate
bikesharingenv
This diff is collapsed.
Click to expand it.
install.sh
+
8
−
8
View file @
0f39f499
# This script installs the required environment for the project.
%!/bin/bash
#!/bin/bash
# Check if mamba is installed
if
!
command
-v
mamba &> /dev/null
then
echo
"mamba could not be found, exiting"
#stopping the script
exit
else
echo
"mamba is already installed"
echo
"Mamba is not installed. Please install it first."
exit
1
fi
echo
"Creating environment from environment.yaml..."
mamba
env
create
-f
environment.yaml
mamba activate bikesharingenv
\ No newline at end of file
echo
"Environment 'bikesharingenv' created."
echo
"To activate it, run:"
echo
" mamba activate bikesharingenv"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment