jupyter notebook 参数传递给shell命令行

dataset = ["el","tv"]
model = ["model"]
stride = [32,64,256,512]
for m in model:
    for d in dataset:
        for s in stride:
            print(f"{m} {d} {s}")
            c = f"tail -n3 N{m}_hp_emb{s}_adam_{d}_log_1.txt"
            !$c
            print("-"*100)

你可能感兴趣的:(other)