Skip to content

Instantly share code, notes, and snippets.

@bilzard
bilzard / kaggle_solution_template.md
Created August 17, 2023 06:27
[Nth] Place Solution for the [COMPETITION_NAME] Competition

Context

  • Business context: (link to overview page)
  • Data context: (link to data page)

Overview of the approach

Details of the submission

Sources

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bilzard
bilzard / fold_split.py
Created February 19, 2023 06:26
Fold Split by Polars
def split_fold(
df: pl.DataFrame,
target_col="label",
group_cols=["group"],
num_folds=5,
seed=42,
) -> pl.DataFrame:
"""
- add column `_fold` to input DataFrame
"""
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bilzard
bilzard / pseudo_labeling_gpt.md
Last active March 3, 2024 09:10
Pseudo labelingに対するChatGPTの回答

質問

Psuedo labelingとは何ですか?

回答

Psuedo labelingは、深層学習のモデルを訓練するための手法の一つです。この方法では、予測が高い信頼性を持つデータポイントを、訓練データとしてモデルに使用します。この方法を使うことで、ラベル付けされていないデータも訓練に利用することができます。

例えば、あるタスクについてラベル付けされたデータセットがありますが、そのデータセットは非常に小さいため、モデルを訓練するには不十分です。このような場合、psuedo labelingを使うことで、より多くのデータをモデルに使用することができます。

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bilzard
bilzard / noglobal.py
Created November 19, 2022 16:28 — forked from raven38/noglobal.py
Useful Noglobal in Python
# License:
# I hereby state this snippet is below "threshold of originality" where applicable (public domain).
#
# Otherwise, since initially posted on Stackoverflow, use as:
# CC-BY-SA 3.0 skyking, Glenn Maynard, Axel Huebl
# http://stackoverflow.com/a/31047259/2719194
# http://stackoverflow.com/a/4858123/2719194
import builtins
import types
@bilzard
bilzard / simulate_filter.ipynb
Created November 18, 2022 11:15
filter演算の速度比較
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.