This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
See ClickUp task: https://app.clickup.com/t/86b32qrk6 | |
Toy example to experiment with modeling a raw Approximate objective then transforming to | |
score vs modeling the score directly. | |
Process: | |
- define an Approximate objective with bounds [A, B] and target T | |
- fabricate several trials' measurements for this objective, as a uniform distribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▶ make skaffold-dev | |
skaffold dev -f k8s/skaffold.yaml --auto-build=false | |
Generating tags... | |
- us-docker.pkg.dev/notartifacts/compute-service/worker -> us-docker.pkg.dev/notartifacts/compute-service/worker:v0.7.4-83-g68f0ae5-dirty | |
Checking cache... | |
- us-docker.pkg.dev/notartifacts/compute-service/worker: Found Locally | |
Tags used in deployment: | |
- us-docker.pkg.dev/notartifacts/compute-service/worker -> us-docker.pkg.dev/notartifacts/compute-service/worker:be5b6889b86e164418c9eea0b6936fd491b3607387260cd8de8d458b763fda7c | |
Starting deploy... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When validating a field that is defined in the parent model, we can't use ValidationInfo to access sibling fields |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE this example calls the optimizers code, but can easily be translated to a pure Botorch example. | |
DOMAIN = { | |
"objectives": [ | |
{ | |
"bounds": [1.0, 2.0], | |
"name": "asdf", | |
"unit": "", | |
"weight": 1.0, | |
"category": "Analytical", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
import pandas as pd | |
import os as os | |
import re | |
dummy = pd.read_csv(str("/Users/pvasu/Downloads/dummy_example.csv")).set_index('Sample Name') | |
samplepat = re.compile('Sample(\d+)') | |
measurpat = re.compile('_(\d+)') | |
regionpat = re.compile('egion(\d+)') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_month_calendar(num_of_days, starting_day): | |
#TODO | |
return None | |
def is_leap_year(year): | |
#TODO | |
return True | |
def print_year_calendar(year, starting_day): | |
#TODO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> | |
<!-- bxSlider Javascript file --> | |
<script src="./bxslider-4/dist/jquery.bxslider.min.js"></script> | |
<script src="./WallopSlider.js/dist/WallopSlider.js"></script> | |
<!-- bxSlider CSS file --> |