add autodl

This commit is contained in:
mhz
2024-08-25 18:02:31 +02:00
parent 192f286cfb
commit a0a25f291c
431 changed files with 50646 additions and 8 deletions

View File

@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at dongxuanyi888@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

33
AutoDL-Projects/.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,33 @@
# Contributing to AutoDL-Projects
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
The following is a set of guidelines for contributing to AutoDL-Projects.
## Table Of Contents
[How Can I Contribute?](#how-can-i-contribute)
* [Reporting Bugs](#reporting-bugs)
* [Suggesting Enhancements](#suggesting-enhancements)
* [Your First Code Contribution](#your-first-code-contribution)
## How Can I Contribute?
### Reporting Bugs
This section guides you through submitting a bug report for AutoDL-Projects.
Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:.
When you are creating a bug report, please include as many details as possible.
Fill out [the required template](https://github.com/D-X-Y/AutoDL-Projects/blob/main/.github/ISSUE_TEMPLATE/bug-report.md). The information it asks for helps us resolve issues faster.
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
### Suggesting Enhancements
Please feel free to email me (dongxuanyi888@gmail.com).
### Your First Code Contribution
Please feel free to open an Pull Requests.

View File

@@ -0,0 +1,24 @@
---
name: Bug Report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Please provide a small script to reproduce the behavior:
```
codes to reproduce the bug
```
Please let me know your OS, Python version, PyTorch version.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

View File

@@ -0,0 +1,15 @@
---
name: Questions w.r.t. an AutoDL algorithm
about: Ask questions about or discuss on some algorithms
title: ''
labels: ''
assignees: ''
---
**Which Algorithm**
Please put the title of the AutoDL algorithm that you want to ask here.
**Describe the Question**
A clear and concise description of what the bug is.

View File

@@ -0,0 +1,67 @@
name: Test Spaces
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Lint with Black
run: |
python -m pip install black
python --version
python -m black --version
echo $PWD ; ls
python -m black ./exps -l 88 --check --diff --verbose
python -m black ./tests -l 88 --check --diff --verbose
python -m black ./xautodl/x* -l 88 --check --diff --verbose
python -m black ./xautodl/spaces -l 88 --check --diff --verbose
python -m black ./xautodl/trade_models -l 88 --check --diff --verbose
python -m black ./xautodl/procedures -l 88 --check --diff --verbose
python -m black ./xautodl/config_utils -l 88 --check --diff --verbose
python -m black ./xautodl/log_utils -l 88 --check --diff --verbose
- name: Install XAutoDL from source
run: |
pip install .
- name: Test Search Space
run: |
python -m pip install pytest
python -m pip install torch torchvision
python -m pip install parameterized
echo $PWD
echo "Show what we have here:"
ls
python --version
python -m pytest ./tests/test_import.py -s
python -m pytest ./tests/test_basic_space.py -s
shell: bash
- name: Test Math
run: |
python -m pytest ./tests/test_math*.py -s
shell: bash
- name: Test Synthetic Data
run: |
python -m pytest ./tests/test_synthetic*.py -s
shell: bash

View File

@@ -0,0 +1,41 @@
name: Test Xmisc
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install XAutoDL from source
run: |
pip install .
- name: Test Xmisc
run: |
python -m pip install pytest
python -m pip install torch torchvision
python -m pip install parameterized
echo $PWD
echo "Show what we have here:"
ls
python --version
python -m pytest ./tests/test_misc* -s
shell: bash

View File

@@ -0,0 +1,42 @@
name: Test Super Model
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install XAutoDL from source
run: |
pip install .
- name: Test Super Model
run: |
python -m pip install pytest
python -m pip install parameterized
python -m pip install torch torchvision
python -m pytest ./tests/test_super_*.py
shell: bash
- name: Test TAS (NeurIPS 2019)
run: |
python -m pytest ./tests/test_tas.py
shell: bash