报错unrecognized arguments

usage: ipykernel_launcher.py [-h] [--seed SEED] [--root_path ROOT_PATH]
                             [--train_split TRAIN_SPLIT]
                             [--val_split VAL_SPLIT] [--test_split TEST_SPLIT]
                             [--weight_path WEIGHT_PATH]
                             [--batch_size BATCH_SIZE]
                             [--num_workers NUM_WORKERS]
ipykernel_launcher.py: error: unrecognized arguments: --ip=127.0.0.1 --stdin=9004 --control=9002 --hb=9001 --Session.signature_scheme="hmac-sha256" --Session.key=b"24ab4e54-33c6-4bc9-8dd8-7aea44ec14a6" --shell=9003 --transport="tcp" --iopub=9005 --f=/home/lsy/.local/share/jupyter/runtime/kernel-v2-2492401ipxM4JeggOWr.json
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

ipynb报错如图,只需将以下注释代码修改为

args=parser.parse_args([无空格])即可

报错unrecognized arguments_第1张图片

你可能感兴趣的:(学习经验,python,深度学习,开发语言)