リクエストさせてください🙇♂️ プログラミング全くわかりませんがチャットGPTを使用して自動売買したく、こちらの動画にたどり着きました。しかしレベルが高く感じ、リクエストさせて頂きました。 ChatGPT x TradingView x Binance でのシンプルな自動売買手順が知りたいです。 宜しくお願い致します🙇♂️
YSTheEndOfTheWorldです。いつも勉強させて頂いております。 Part3の時はUPしているソースの存在を知らず、動画のコードで動かず苦労したのでこのPart4では初めからUPされているものをDLしてまず動かしてみようとしたところ、エラーが出て解決できません。ヒント頂ければ幸いです。 # 学習モデルの作成 model = keras.models.Sequential() model.add(layers.Conv2D(32, (3, 3), padding='same', input_shape=X_train.shape[1:], activation='relu')) model.add(layers.MaxPooling2D(pool_size=(2, 2))) model.add(layers.Dropout(0.25)) のところの model.add(layers.Conv2D(32, (3, 3), padding='same', input_shape=X_train.shape[1:], activation='relu')) で以下のようなエラーが出て先に進めません。 File "C:\Users\user\AI\cnn.py", line 30, in <module> model.add(layers.Conv2D(32, (3, 3), padding='same', File "C:\Users\user\anaconda3\envs\tensor-\lib\site-packages\tensorflow\python\training\tracking\base.py", line 587, in _method_wrapper result = method(self, *args, **kwargs) File "C:\Users\user\anaconda3\envs\tensor-\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users\user\anaconda3\envs\tensor-\lib\site-packages\keras\engine\input_spec.py", line 228, in assert_input_compatibility raise ValueError(f'Input {input_index} of layer "{layer_name}" ' ValueError: Input 0 of layer "conv2d" is incompatible with the layer: expected min_ndim=4, found ndim=1. Full shape received: (None,) 何卒宜しくお願い致します。
@ystheendoftheworld29462 жыл бұрын
初めまして 極東のはずれで勉強させていただいております。 [AIプログラミング入門] 顔認識プログラムを作ってみよう Part2まではできました Part3で以下のようなエラーメッセージを解消できず足踏み状態です。 よろしければご教授頂ければ幸いです。 # ディレクトリでループして画像を読み込む for index,label in enumerate(dirs): photos_dir = image_path + '/' + label # そのディレクトリ内のjpgファイルを全部読み込む photos = glob.glob(photos_dir + '/*.jpg') for i, p in enumerate(photos_dir): if i >= num_images: break image = Image.open(p) # <<<======= ここのようです image = Image.convert('RGB') image = Image.resize((image_size,image_size)) data = np.asarray(image) Traceback (most recent call last): File "C:\Users\user\AI\load_image.py", line 42, in <module> image = Image.open(p) File "C:\Users\user\anaconda3\envs\tensor-\lib\site-packages\PIL\Image.py", line 3068, in open fp = builtins.open(filename, "rb") PermissionError: [Errno 13] Permission denied: '.' 何卒よろしくお願い申し上げます。