Merged PR 1054: Prepwork for OSSing

- include some boilerplate from the original MLOS repo
- adding license headers on scripts
- add rules for checking licenseheaders
This commit is contained in:
Brian Kroth 2023-03-17 21:20:39 +00:00
Родитель 3d45676aa3
Коммит dbac3f4ddd
115 изменённых файлов: 560 добавлений и 15 удалений

Просмотреть файл

@ -161,6 +161,13 @@ jobs:
docker exec --user root mlos-core-devcontainer chown -R vscode /opt/conda/pkgs/cache /var/cache/pip
displayName: 'Fixup vscode uid/gid in the running container'
- bash: |
set -x
docker exec --user vscode mlos-core-devcontainer make CONDA_INFO_LEVEL=-v licenseheaders
# licenseheaders changes the contents of the files, so make this check fail if there are any changes detected
git diff --no-pager --exit-code
displayName: 'Check that all of the python files have licenseheaders'
- bash: |
set -x
docker exec --user vscode mlos-core-devcontainer make CONDA_INFO_LEVEL=-v conda-env

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
FROM mcr.microsoft.com/devcontainers/miniconda:3 AS base
# Add some additional packages for the devcontainer terminal environment.

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Start with npm
FROM node:lts-slim

Просмотреть файл

@ -1,6 +1,9 @@
# Requires -Version 5.0
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# A script to build the devcontainer-cli image.
#
$ErrorActionPreference = 'Stop'
# Make sure we're in the root of the repository.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -x

Просмотреть файл

@ -1,6 +1,9 @@
# Requires -Version 5.0
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# A script to build the devcontainer image.
#
$ErrorActionPreference = 'Stop'
# Make sure we're in the root of the repository.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -x

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Prep some files for the devcontainer build in a way that's cross platform.
# We do this by running this script from a container that has the tools we need

Просмотреть файл

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
set -eu

Просмотреть файл

@ -1,4 +1,7 @@
# Requires -Version 3.0
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# A script to prepare the build environment for the devcontainer.
$ErrorActionPreference = 'Stop'

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -x

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Quick hacky script to start a devcontainer in a non-vscode shell for testing.
# See Also:

9
CODE_OF_CONDUCT.md Normal file
Просмотреть файл

@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns

37
CONTRIBUTING.md Normal file
Просмотреть файл

@ -0,0 +1,37 @@
# Contributing to MLOS
This project welcomes contributions and suggestions.
Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment).
Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Details
[`main`](https://github.com/microsoft/MLOS/tree/main) is considered the primary development branch.
We expect development to follow a typical "gitflow" style workflow:
1. Fork a copy of the [MLOS repo in Github](https://github.com/microsoft/MLOS).
2. Create a development (a.k.a. topic) branch off of `main` to work on changes.
```shell
git checkout -b YourDevName/some-topic-description main
```
3. Submit changes for inclusion as a [Pull Request on Github](https://github.com/microsoft/MLOS/pulls).
4. PRs are associated with [Github Issues](https://github.com/microsoft/MLOS/issues) and need [MLOS-committers](https://github.com/orgs/microsoft/teams/MLOS-committers) to sign-off (in addition to other CI pipeline checks like tests and lint checks to pass).
5. Once approved, the PR can be completed using a squash merge in order to keep a nice linear history.
### Caveats
There are consumers of MLOS internal to Microsoft that use an internal copy of the Github repo targetting code that is not open-sourced.
This arrangement sometimes means porting changes from the internal repo to Github (and vise-versa).
When that happens, the changes are submitted as a PR as described above, with the slight modification of (once approved and passing tests) using a rebase based merge instead of a squash merge in order to allow detecting duplicate patches between the public and private repos.
Additionally, to try and catch breaking changes we run some extra internal integration tests as well.
If they do find issues, we encourage a conversation to occur on how to resolve them in the PRs.

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
CONDA_ENV_NAME ?= mlos_core
PYTHON_VERSION := $(shell echo "${CONDA_ENV_NAME}" | sed -r -e 's/^mlos_core[-]?//')
ENV_YML := conda-envs/${CONDA_ENV_NAME}.yml
@ -38,7 +41,7 @@ clean-conda-env:
rm -f build/conda-env.${CONDA_ENV_NAME}.build-stamp
.PHONY: check
check: pycodestyle pydocstyle pylint # cspell
check: pycodestyle pydocstyle pylint # cspell licenseheaders
.PHONY: pycodestyle
pycodestyle: conda-env build/pycodestyle.mlos_core.${CONDA_ENV_NAME}.build-stamp build/pycodestyle.mlos_bench.${CONDA_ENV_NAME}.build-stamp
@ -63,6 +66,17 @@ build/pydocstyle.%.${CONDA_ENV_NAME}.build-stamp: build/conda-env.${CONDA_ENV_NA
conda run -n ${CONDA_ENV_NAME} pydocstyle $(filter-out setup.cfg,$+)
touch $@
.PHONY: licenseheaders
licenseheaders: build/licenseheaders.${CONDA_ENV_NAME}.build-stamp
build/licenseheaders-prereqs.${CONDA_ENV_NAME}.build-stamp: build/conda-env.${CONDA_ENV_NAME}.build-stamp
conda run -n ${CONDA_ENV_NAME} pip install licenseheaders
touch $@
build/licenseheaders.${CONDA_ENV_NAME}.build-stamp: build/licenseheaders-prereqs.${CONDA_ENV_NAME}.build-stamp $(PYTHON_FILES) doc/mit-license.tmpl
conda run -n ${CONDA_ENV_NAME} licenseheaders -t doc/mit-license.tmpl -E .py .sh .ps1 -x mlos_bench/setup.py mlos_core/setup.py
touch $@
.PHONY: cspell
ifeq ($(DOCKER),)
cspell:
@ -361,6 +375,8 @@ clean-check:
rm -f build/pydocstyle.${CONDA_ENV_NAME}.build-stamp
rm -f build/pydocstyle.mlos_core.${CONDA_ENV_NAME}.build-stamp
rm -f build/pydocstyle.mlos_bench.${CONDA_ENV_NAME}.build-stamp
rm -f build/licenseheaders.${CONDA_ENV_NAME}.build-stamp
rm -f build/licenseheaders-prereqs.${CONDA_ENV_NAME}.build-stamp
.PHONY: clean-test
clean-test:

3
NOTICE Normal file
Просмотреть файл

@ -0,0 +1,3 @@
NOTICES
This repository incorporates material as listed below or described in the code.

41
SECURITY.md Normal file
Просмотреть файл

@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Provides some pytest configuration overrides for both modules.
"""

2
doc/mit-license.tmpl Normal file
Просмотреть файл

@ -0,0 +1,2 @@
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# A quick script to start a local webserver for testing the sphinx documentation.

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
{{index}}
{{summary}}
{{extended_summary}}

Просмотреть файл

@ -1,3 +1,8 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper script to generate Redis config from tunable parameters JSON.

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Script for post-processing redis-benchmark results.
"""

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper script to generate GRUB config from tunable parameters JSON.

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper script to generate a script to update kernel parameters from tunables JSON.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Script to restore boot-time parameters of VM to original state.
# This script should be run in the VM.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Script to restore runtime parameters of VM to original state.
# This script should be run in the VM.

Просмотреть файл

@ -1,3 +1,8 @@
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Environment variables, distribution check, root access for boot-time parameters.
# This file should be in the VM.

Просмотреть файл

@ -1,3 +1,8 @@
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Environment variables and root access for runtime parameters.
# This file should be in the VM.

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Python script to parse through JSON and create new config file.

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Python script to parse through JSON, store runtime parameter paths, and
create script to apply new runtime parameters in VM.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Script to store old grub config and reboot VM (if necessary).
# Config file created in scheduler should have been moved to

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# Script to apply new runtime parameters of booted VM.
# This script should be run in the VM.

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -eu
set -o pipefail

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -eu

Просмотреть файл

@ -1,2 +1,7 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
# TODO

Просмотреть файл

@ -1,3 +1,8 @@
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
REDIS_IMAGE='redis:7.0'
REDIS_PORT='6379'
REDIS_SERVER_NAME='redis-server'

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -eu

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -eu

Просмотреть файл

@ -1,4 +1,8 @@
#!/bin/bash
##
## Copyright (c) Microsoft Corporation.
## Licensed under the MIT License.
##
set -eu

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
mlos_bench is a framework to help automate benchmarking and and
OS/application parameter autotuning.

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tunable Environments for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
A hierarchy of benchmark environments.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Composite benchmark environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Local Environments for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Scheduler-side benchmark environment to run scripts locally.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Scheduler-side Environment to run scripts locally
and upload/download data to the shared storage.

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Scheduler-side environment to mock the benchmark results.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Remote Tunable Environments for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
OS-level remote Environment on Azure.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Remotely executed benchmark/script environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
"Remote" VM Environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Enum for the status of the benchmark/environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper functions to launch the benchmark and the optimizer from the command line.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Interfaces and wrapper classes for optimizers to be used in Autotune.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Base class for an interface between the benchmarking framework
and mlos_core optimizers.

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Functions to convert TunableGroups to ConfigSpace for use with the mlos_core optimizers.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
A wrapper for mlos_core optimizers for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Mock optimizer for mlos_bench.
"""

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
OS Autotune benchmark launcher without involving the optimizer.
Used mostly for development/testing purposes.

Просмотреть файл

@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
OS Autotune main optimization loop.

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Services for implementing Environments for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Base class for remote file shares.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Base class for the service mix-ins.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper functions to load, instantiate, and serialize Python objects
that encapsulate benchmark environments, tunable parameters, and

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Local scheduler side Services for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Helper functions to run scripts and commands locally on the scheduler side.
"""

Просмотреть файл

@ -1 +1,5 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""Services for executing scripts and commands on remote hosts."""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Azure-specific benchmark environments for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
A collection FileShare functions for interacting with Azure File Shares.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
A collection Service functions for managing VMs on Azure.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""SSH remote service."""
# TODO

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Common fixtures for Tunable and TunableGroups tests.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for mock benchmark environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Test fixtures for mlos_bench optimizers.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for mock mlos_bench optimizer.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for mock mlos_bench optimizer.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Toy optimization loop to test the optimizers on mock benchmark environment.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for configuration persistence service.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for LocalExecService to run Python scripts locally.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for the service to run the scripts locally.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tests for mlos_bench.service.remote.azure.azure_fileshare
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tests for mlos_bench.service.remote.azure.azure_services
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Configuration test fixtures for azure_services in mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for Tunable to ConfigSpace conversion.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for assigning values to the individual parameters within tunable groups.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Unit tests for deep copy of tunable objects and groups.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tunables classes for Environments in mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tunable parameter definition.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Tunable parameter definition.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
TunableGroups definition.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Various helper functions for mlos_bench.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Setup instructions for the mlos_bench package.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Basic initializer module for the mlos_core package.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Basic initializer module for the mlos_core optimizers.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Contains the wrapper classes for different Bayesian optimizers.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Contains the BaseOptimizer abstract class.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Contains the RandomOptimizer class.
"""

Просмотреть файл

@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
"""
Contains some helper functions for converting config
"""

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше