
プログラミング


streamlitのメニューバー隠す
# streamlitのmenubarを隠すHIDE_ST_STYLE = """ <style> div[data-testid="stToolbar"] { visibility: hidden; height: 0%; positio...

streamlitコンポーネント

ダウンディテクター Downditector
サイトの生死を確認できるサイト

ゼロから作るディープラーニング 自習

venv環境でjupyter利用
mkdir testcd testpython3 -m venv venv. venv/bin/activatepip install jupyterpip install pandasjupyter notebookdeactivate

What Are the Top 10 IT Skills For 2030?

機械学習 マスク写真判定
画像から人間の顔を検出して、顔画像を保存するプログラムimport cv2, dlib, sys, glob, pprint# 入力ディレクトリの指定indir = "./capture"# 出力ディレクトリの指定outdir = "./f...

機械学習 業務 写真判定
FlickrAPIで写真をダウンロード# Flickrで写真を検索して、ダウンロードするfrom flickrapi import FlickrAPIfrom urllib.request import urlretrievefrom pp...

機械学習 身長体重DB
import sqlite3dbpath = "./hw.sqlite3"sql = '''CREATE TABLE IF NOT EXISTS person ( id INTEGER PRIMARY KEY, height NUMBER,...

機械学習 業務
#データの保存from sklearn import datasets, svmimport pickle#アヤメのサンプルデータ読み込むiris = datasets.load_iris()#データを学習clf = svm.SVC()cl...

ディープラーニング カタカナ判定 CNNは画像に強い
ETL文字データベースは日本語の手書きデータを多く収録データベースに画像を変換#ETL1ファイルを読み込むimport structfrom PIL import Image, ImageEnhanceimport glob, os#出力デ...

ディープラーニング 物体認識
from keras.datasets import cifar10(X_train, y_train), (X_test, y_test) = cifar10.load_data()import matplotlib.pyplotfrom...

ディープラーニング CNNアルゴリズム
# CNNでMNISTの分類問題に挑戦import kerasfrom keras.models import Sequentialfrom keras.layers import Dense, Dropout, Flattenfrom k...

whisper kotoba-shisper-v1.0
import torchfrom transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline# configmodel_id = "kotoba-tech/k...

ディープラーニング ニューラルネットワーク MNIST
#最低限のニューラルネットワークimport kerasfrom keras.datasets import mnistfrom matplotlib import pyplot# #MINSTデータ読み込み(X_train, y_trai...

アヤメの分類 tensorflow
import tensorflow as tfimport tensorflow.keras as kerasfrom sklearn.model_selection import train_test_splitimport pandas...

python music

ディープラーニング tensorflow
import tensorflow as tfprint(tf.__version__)#じゃんけんデータを作成するimport pickleimport numpy as np#ジャン絵の手と結果を定義hands = {'グー': 0, ...

機械学習 スパム
#単語のデータベースを作成するimport os, globimport MeCabimport numpy as npimport pickle#保存ファイル名savefile = "./ok-spam.pikcle"#MeCabの準備t...