Break in for loop in Bash
#!/bin/bash # ERRシグナルをキャッチしてエラーが発生したらループを抜ける trap 'break' ERR # リストの中の各要素に対して処理を行うforループ for item in item1 item2 item3 item4; do echo "Processing $item" #…
#!/bin/bash # ERRシグナルをキャッチしてエラーが発生したらループを抜ける trap 'break' ERR # リストの中の各要素に対して処理を行うforループ for item in item1 item2 item3 item4; do echo "Processing $item" #…
import matplotlib.pyplot as plt import numpy as np # サンプルデータを生成 x = np.linspace(0, 10, 100) y = np.sin(x) # プロット…
class TemperatureCelsius: def __init__(self, temperature=0): self._temperature = temperature @property def temperature(self) : float: print("Getting temperature") return self._temperature @temperature.setter def temperature(self,…
Implements pure virtual function in Interface Inherit the virtual class Usage
About In BoTorch, there are 2 fitting functions are prepared, fit_gpytorch_mll / fit_fully_bayesian_model_nuts(https://botorch.org/api/fit.html). And there are some loss functions are…
About https://arxiv.org/abs/1708.02002 The Focal Loss is a loss function designed to solve class imbalance problems, especially when some classes appear…
About I will take a leave before regular time today. To enjoy summer vacation earlier than the other employees, what…
About Understanding of Http Request structure would help you to implement code. For example, It lets you know how to…
About In the former article (https://eye.kohei-kevin.com/2024/05/24/esp32-cam-image-webserver/), I wrote the code to enable the ESP32 to function as an HTTP server,…
About Multi-Output(MOGP) and Multi-Task(MTGP) In BoTorch document, it mentions that the multi-task and multi-output gaussian processes are difference. The MOGP…