エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
import numpy as np import pathlib from decimal import Decimal, ROUND_HALF_UP from keras.utils imp... import numpy as np import pathlib from decimal import Decimal, ROUND_HALF_UP from keras.utils import to_categorical from sklearn.preprocessing import LabelEncoder from PIL import Image from keras.applications.mobilenet import MobileNet class BalancedImageDataGenerator(object): def __init__(self): self.reset() def reset(self): self.images = [] self.labels = [] def round(self, f): return Decimal(str