{ "task": { "id": "case_104", "name": "exponential", "summary": "Apply exponential function to all elements of the input sequence.", "examples": [ { "input": [ "BOS", 2, 4, 2, 6, 4, 8, 6, 1, 3 ], "output": [ "BOS", 7.38905609893065, 54.598150033144236, 7.38905609893065, 403.4287934927351, 54.598150033144236, 2980.9579870417283, 403.4287934927351, 2.718281828459045, 20.085536923187668 ] }, { "input": [ "BOS", 4, 1, 7, 5, 1, 4, 0, 9, 5 ], "output": [ "BOS", 54.598150033144236, 2.718281828459045, 1096.6331584284585, 148.4131591025766, 2.718281828459045, 54.598150033144236, 1.0, 8103.083927575384, 148.4131591025766 ] }, { "input": [ "BOS", 10, 10, 7, 4, 3, 7, 7, 2, 5 ], "output": [ "BOS", 22026.465794806718, 22026.465794806718, 1096.6331584284585, 54.598150033144236, 20.085536923187668, 1096.6331584284585, 1096.6331584284585, 7.38905609893065, 148.4131591025766 ] }, { "input": [ "BOS", 8, 0, 10, 10, 9, 2, 6, 3, 8 ], "output": [ "BOS", 2980.9579870417283, 1.0, 22026.465794806718, 22026.465794806718, 8103.083927575384, 7.38905609893065, 403.4287934927351, 20.085536923187668, 2980.9579870417283 ] }, { "input": [ "BOS", 6, 3, 10, 7, 4, 6, 9, 2, 6 ], "output": [ "BOS", 403.4287934927351, 20.085536923187668, 22026.465794806718, 1096.6331584284585, 54.598150033144236, 403.4287934927351, 8103.083927575384, 7.38905609893065, 403.4287934927351 ] } ], "is_categorical": true }, "program": "exp_approx = rasp.Map(lambda x: math.exp(x), rasp.tokens)\nreturn exp_approx", "components": [ { "id": "L0_MLP", "hook": "blocks.0.mlp.hook_post", "role": { "tag": "MAPPER", "note": "Applies an element-wise exponential transformation to each input element." }, "rasp_vars": [ "exp_approx" ], "labels": [ "map_1" ] } ] }