383. Abstraction and Reasoning Challenge | abstraction-and-reasoning-challenge
我想你们肯定对顶尖的解决方案感兴趣,我也是!
但请允许我写在这里,因为我为这次挑战投入了大量精力。
我的解决方案是 DSL(领域特定语言)加上搜索。
GitHub 链接:https://github.com/k-harada/abstraction-and-reasoning-challenge
我的 DSL 应用方式如下:
def test_58():
p = Runner(58, verbose=True)
p.run("mesh_split")
p.run("n_cell")
p.run("keep_max")
p.run("max_color")
p.run("paste_color_full")
我尝试了几种搜索方法,简单的 BFS(广度优先搜索)显著提高了我的分数,从 0.970 降到了 0.931。
对于探测没有特别的想法。
解决数量:
训练集:146 / 416
评估集:94 / 419