| { |
| "task": { |
| "id": "case_50", |
| "name": "hyperbolic_cosine", |
| "summary": "Applies the hyperbolic cosine to each element.", |
| "examples": [ |
| { |
| "input": [ |
| "BOS", |
| 2, |
| 4, |
| 2, |
| 6, |
| 4, |
| 8, |
| 6, |
| 1, |
| 3 |
| ], |
| "output": [ |
| "BOS", |
| 3.7621956910836314, |
| 27.308232836016487, |
| 3.7621956910836314, |
| 201.7156361224559, |
| 27.308232836016487, |
| 1490.479161252178, |
| 201.7156361224559, |
| 1.5430806348152437, |
| 10.067661995777765 |
| ] |
| }, |
| { |
| "input": [ |
| "BOS", |
| 4, |
| 1, |
| 7, |
| 5, |
| 1, |
| 4, |
| 0, |
| 9, |
| 5 |
| ], |
| "output": [ |
| "BOS", |
| 27.308232836016487, |
| 1.5430806348152437, |
| 548.317035155212, |
| 74.20994852478785, |
| 1.5430806348152437, |
| 27.308232836016487, |
| 1.0, |
| 4051.5420254925943, |
| 74.20994852478785 |
| ] |
| }, |
| { |
| "input": [ |
| "BOS", |
| 10, |
| 10, |
| 7, |
| 4, |
| 3, |
| 7, |
| 7, |
| 2, |
| 5 |
| ], |
| "output": [ |
| "BOS", |
| 11013.232920103324, |
| 11013.232920103324, |
| 548.317035155212, |
| 27.308232836016487, |
| 10.067661995777765, |
| 548.317035155212, |
| 548.317035155212, |
| 3.7621956910836314, |
| 74.20994852478785 |
| ] |
| }, |
| { |
| "input": [ |
| "BOS", |
| 8, |
| 0, |
| 10, |
| 10, |
| 9, |
| 2, |
| 6, |
| 3, |
| 8 |
| ], |
| "output": [ |
| "BOS", |
| 1490.479161252178, |
| 1.0, |
| 11013.232920103324, |
| 11013.232920103324, |
| 4051.5420254925943, |
| 3.7621956910836314, |
| 201.7156361224559, |
| 10.067661995777765, |
| 1490.479161252178 |
| ] |
| }, |
| { |
| "input": [ |
| "BOS", |
| 6, |
| 3, |
| 10, |
| 7, |
| 4, |
| 6, |
| 9, |
| 2, |
| 6 |
| ], |
| "output": [ |
| "BOS", |
| 201.7156361224559, |
| 10.067661995777765, |
| 11013.232920103324, |
| 548.317035155212, |
| 27.308232836016487, |
| 201.7156361224559, |
| 4051.5420254925943, |
| 3.7621956910836314, |
| 201.7156361224559 |
| ] |
| } |
| ], |
| "is_categorical": true |
| }, |
| "program": "return rasp.Map(math.cosh, rasp.tokens)", |
| "components": [ |
| { |
| "id": "L0_MLP", |
| "hook": "blocks.0.mlp.hook_post", |
| "role": { |
| "tag": "MAPPER", |
| "note": "Applies an elementwise hyperbolic cosine transformation to each input value." |
| }, |
| "rasp_vars": [ |
| "hyperbolic_cosine" |
| ], |
| "labels": [ |
| "map_1" |
| ] |
| } |
| ] |
| } |
|
|