Copyright: @tk0miya License: BSDL
#pyconjp2020
See https://docs.google.com/presentation/d/1GzGae1_uB05-8tJZChOJdTuuP4XFJWuak7etHKEvJqQ/edit?usp=sharing
| use crate::minituna_v1::Objective; | |
| use crate::minituna_v1::Trial; | |
| use crate::minituna_v1::TrialError; | |
| struct Quadratic; | |
| impl Objective for Quadratic { | |
| fn objective(&self, trial: Trial) -> Result<f64, TrialError> { | |
| let x = trial.suggest_uniform("x", 0.0, 10.0); | |
| let y = trial.suggest_uniform("y", 0.0, 10.0); |
Copyright: @tk0miya License: BSDL
#pyconjp2020
See https://docs.google.com/presentation/d/1GzGae1_uB05-8tJZChOJdTuuP4XFJWuak7etHKEvJqQ/edit?usp=sharing
| git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
| default: 01 02 03 | |
| 01: | |
| $(MAKE) -s ranking | tee ranking.md | |
| 02: | |
| $(MAKE) -s ranking TARGET=_ranking2 | tee ranking2.md | |
| 03: | |
| $(MAKE) -s ranking TARGET=_ranking3 | tee ranking3.md | |
| 04: | |
| $(MAKE) -s ranking TARGET=_ranking4 | tee ranking4.md |
| import logging | |
| import asyncio | |
| import time | |
| from functools import partial | |
| from mysleep import mysleep | |
| logger = logging.getLogger(__name__) | |
| async def run(): |
| 日時: | 2024-02-01 |
|---|---|
| 作: | 時雨堂 |
| 資料 バージョン: | 2024.1 |
| GitHub URL: | https://github.com/shiguredo/momo |
| 製品 URL: | https://momo.shiguredo.jp/ |
| # pip3 install websocket-client | |
| import websocket | |
| from multiprocessing import Process, Value, Lock, Event | |
| from datetime import datetime | |
| import dateutil.parser | |
| import json | |
| from time import sleep | |
| class SFDInfo(): | |
| def __init__(self): |