Skip to content

Instantly share code, notes, and snippets.

波形の表示

基本的には{}で括って.plot

  • 音の再生
{LFSaw.ar(4, 3pi/2).range(0, 3000)}.play
  • 波形の表示(引数はx軸の長さ(秒数))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / r_tz.ipynb
Created December 12, 2022 09:27
r_tz.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / undersampling-bagging.ipynb
Created December 5, 2022 05:33
undersampling-bagging.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / imbalanced_data.ipynb
Created December 5, 2022 05:00
imbalanced_data.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

概要

Apache BeamのJavaのパイプラインからPythonの処理を呼び出すことのできるJava multi-language pipelinesの簡単な例( https://beam.apache.org/documentation/sdks/java-multi-language-pipelines/ )を実行したのだが、環境を作るのに少々煩雑であったので、そのメモ。

経緯

Apache Beamの2.40.0からRunInference transformが導入され、Apache Beam PythonではPyTorchとscikit-learnのモデルが直接サポートされるようになった。

  • https://twitter.com/settings/your_twitter_data/twitter_interests にChromeでアクセス
  • F12を押下し、DevToolsを表示して、JavaScriptコンソールを表示(F12ではなく、直接option + cmd + jでも可)
  • JavaScriptコンソールで以下を実行
    • warning が出るので予めallow pastingを実行する必要がある
allow pasting
var timer=100;document.querySelectorAll(
"div > input[type='checkbox']:checked"