Contributing
This page serves as the contribution guide for the OAR
package. From top to bottom, the ways of contributing are:
- GitHub Issues: how to raise an issue with the project.
- Julia Development: how to download and interact with the package.
- GitFlow: how to directly contribute code to the package in an organized way on GitHub.
- Development Details: how the internals of the package are currently setup if you would like to directly contribute code.
Please also see the Attribution to learn about the authors and sources of support for the project.
Issues
The main point of contact is the GitHub issues page for the project. This is the easiest way to contribute to the project, as any issue you find or request you have will be addressed there by the authors of the package. Depending on the issue, the authors will collaborate with you, and after making changes they will link a pull request which addresses your concern or implements your proposed changes.
Julia Development
As a Julia package, development follows the usual procedure:
- Clone the project from GitHub
- Switch to or create the branch that you wish work on (see GitFlow).
- Start Julia at your development folder.
- Instantiate the package (i.e., download and install the package dependencies).
For example, you can get the package and startup Julia with
git clone git@github.com:AP6YC/OAR.jl.git
julia --project=.
In Julia, you must activate your project in the current REPL to point to the location/scope of installed packages. The above immediately activates the project when starting up Julia, but you may also separately startup the julia and activate the package with the interactive package manager via the ]
syntax:
julia
julia> ]
(@v1.8) pkg> activate .
(OAR) pkg>
You may run the package's unit tests after the above setup in Julia with
julia> using Pkg
julia> Pkg.instantiate()
julia> Pkg.test()
or interactively though the Julia package manager with
julia> ]
(OAR) pkg> instantiate
(OAR) pkg> test
GitFlow
The OAR
package follows the GitFlow git working model. The original post by Vincent Driessen outlines this methodology quite well, while Atlassian has a good tutorial as well. In summary:
- Create a feature branch off of the
develop
branch with the namefeature/<my-feature-name>
. - Commit your changes and push to this feature branch.
- When you are satisfied with your changes, initiate a GitHub pull request (PR) to merge the feature branch with
develop
. - If the unit tests pass, the feature branch will first be merged with develop and then be deleted.
- Releases will be periodically initiated from the
develop
branch and versioned onto themaster
branch. - Immediate bug fixes circumvent this process through a
hotfix
branch off ofmaster
.
Development Details
Documentation
These docs are currently hosted as a static site on the GitHub pages platform. They are setup to be built and served in a separate branch called gh-pages
from the master/development branches of the project.
Package Structure
The OAR
package has the following file structure:
OAR
├── .github/workflows // GitHub: workflows for testing and documentation.
├── cluster // HPC: scripts and submission files for clusters.
├── dockerfiles // Docker: dockerfiles for experiment reproducibility.
├── docs // Docs: documentation for the module.
│ └───src // Documentation source files.
├── notebooks // Source: experiment notebooks.
├── oar // Source: Rust component of the project.
├── opts // Config: options and experiment configurations.
├── scripts // Source: experiment scripts.
├── src // Source: majority of source code.
│ └───lib // Library for the OAR module.
│ └───grammar // Grammar code implementions.
├── test // Test: Unit, integration, and environment tests.
├── work // Data: datasets, results, plots, etc.
│ ├───data // Source datasets for experiments.
│ └───results // Destination for generated figures, etc.
├── .gitattributes // Git: LFS settings, languages, etc.
├── .gitignore // Git: .gitignore for the whole project.
├── CODE_OF_CONDUCT.md // Doc: the code of conduct for contributors.
├── CONTRIBUTING.md // Doc: contributing guide (points to this page).
├── LICENSE // Doc: the license to the project.
├── Project.toml // Julia: the Pkg.jl dependencies of the project.
└── README.md // Doc: the top-level readme for the project.
Type Aliases
For convenience in when defining types and function signatures, this package uses the NumericalTypeAliases.jl
package and the aliases therein. The documentation for the abstract and concrete types provided by NumericalTypeAliases.jl
can be found here.
In this package, data samples are always Real
-valued, whereas class labels are integered. Furthermore, independent class labels are always Int
because of the Julia native support for a given system's signed native integer type.
This project does not currently test for the support of arbitrary precision arithmetic because learning algorithms in general do not have a significant need for precision.
Attribution
Authors
This package is developed and maintained by Sasha Petrenko with sponsorship by the Applied Computational Intelligence Laboratory (ACIL).
If you simply have suggestions for improvement, Sasha Petrenko (<petrenkos@mst.edu>) is the current developer and maintainer of the OAR
package, so please feel free to reach out with thoughts and questions.