このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン | |||
|
プログラム:python [2025/02/06 05:46] kawaue [文法] |
プログラム:python [2025/08/14 09:23] (現在) kawaue |
||
|---|---|---|---|
| 行 181: | 行 181: | ||
| a=value of each bin, b=bin | a=value of each bin, b=bin | ||
| + | |||
| + | ====2軸plot==== | ||
| + | < | ||
| + | run_index = 0 | ||
| + | fig, ax1 = plt.subplots() | ||
| + | ax2 = ax1.twinx() | ||
| + | ax2.plot(histories2[run_index].history[' | ||
| + | ax1.plot(histories2[run_index].history[' | ||
| + | ax1.plot(histories2[run_index].history[' | ||
| + | plt.title(' | ||
| + | ax1.set_xlabel(' | ||
| + | ax1.set_ylabel(' | ||
| + | ax2.set_ylabel(' | ||
| + | handler1, label1 = ax1.get_legend_handles_labels() | ||
| + | handler2, label2 = ax2.get_legend_handles_labels() | ||
| + | ax1.legend(handler1 + handler2, label1 + label2) | ||
| + | # | ||
| + | plt.figure() | ||
| + | </ | ||
| + | |||
| ====機械学習==== | ====機械学習==== | ||
| ===tensorflow=== | ===tensorflow=== | ||