Skip to content

Updated Instruction for 2025 PLR #36

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,4 @@ jobs:
uses: lgeiger/black-action@master
with:
args: "--line-length 120 . --check"
name: black-action

auto-formatting:
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "--line-length 120 ."
name: black-action
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
scripts/wandb/*
scripts/images/*
plr.egg-info/*
2024_home_work/.venv/*
.venv/*
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
File renamed without changes.
18 changes: 9 additions & 9 deletions README.md → 2024_home_work/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ code ~/.bashrc
alias venv_plr="source ~/venv/plr/bin/activate"
```

## Transforming scrips into a software project
## Transforming scripts into a software project
Create a fork of the project on GitHub
```shell
cd ~/git
Expand All @@ -38,18 +38,18 @@ git clone [email protected]:leggedrobotics/plr-exercise.git

Replace `leggedrobotics` with your `username`.

Small notice you can clone a repo using ssh or https.
I recommend to setup ssh-keys and always use ssh.
Note that you can clone a repository using SSH or HTTPS.
I recommend setting up SSH keys and always using SSH.

Then go to the Github Settings to right:
![alt text](docs/repo.jpg)


Activate under General the following Features:
Under General, activate the following features:
![alt text](docs/features.jpg)

### Submission instructions
You at first create a fork of the plr-exercise repository under your local GitHub username.
First, create a fork of the plr-exercise repository under your GitHub username.
For each task you create a branch called: `dev/task_X`
You commit all the changes necessary for this task to this branch and push the changes to GitHub.
To finish a task you create a pull request from `dev/task_X` to `main`.
Expand Down Expand Up @@ -139,7 +139,7 @@ Add wandb logger.
pip3 install wandb
```
Follow the quickstart guide here: [https://docs.wandb.ai/quickstart](https://docs.wandb.ai/quickstart)
Log the training_loss, test_loss, and your code as an artificat.
Log the training_loss, test_loss, and your code as an artifact.
Create a PR with a screenshot of a run with the loss curve and the uploaded source code artifact.


Expand Down Expand Up @@ -177,11 +177,11 @@ Here are some workflows by the RSL that may help you: [https://github.com/legged

## Bonus points

You can get bonus points if you improve this version of this README by fixing errors or adding other usefull "tasks" below that you think will help others.
You can get bonus points if you improve this version of this README by fixing errors or adding other useful "tasks" below that you think will help others.
This may include:
- Improved Reproducability
- Improved Reproducibility
- Visualization
- Configuration with Hydra, OmegaConfiguration
- Measuring the time

## Other usefull tasks [Bonus Points]
## Other useful tasks [Bonus Points]
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def main():
print("Hello from plr!")


if __name__ == "__main__":
main()
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[project]
name = "plr"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
dependencies = [
"numpy", "torch",
"pytictac",
"pre-commit",
"ruff",
"wandb",
"matplotlib",
"notebook",
]
authors = [{ name = "Jonas Frey", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"License :: MIT",
"Operating System :: Linux 20.04",
"Programming Language :: Python :: 3.8",
]

[tool.setuptools]
packages = ["plr"]

[tool.black]
line-length = 120
target-version = ['py38']

[tool.ruff]
line-length = 120
target-version = "py38"
select = ["E", "F", "W"] # Enable error, flake8, and warnings
ignore = ["E741", "E501"]

[tool.mypy]
python_version = "3.8"
strict = true
321 changes: 321 additions & 0 deletions scripts/01_regression.ipynb

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions scripts/02_classification.ipynb

Large diffs are not rendered by default.

427 changes: 427 additions & 0 deletions scripts/03_wandb.ipynb

Large diffs are not rendered by default.

Loading