{"id":"embedding_distance","title":"Specified encoder protocol embedding distance","family":"embedding","definition":"protocol","intro_en":"An embedding comparison first specifies an encoder, then a distance or similarity on its output. This diagram instantiates that protocol with the fixed vector [mean, population SD, adjusted lag-one ACF, linear slope]. It demonstrates the interface with actual numbers; no learned or pretrained representation is used. Euclidean distance retains differences in both vector scale and coordinates.","intro_zh":"嵌入比较先指定编码器，再指定输出空间的距离或相似度。本图使用固定的 [均值、总体标准差、调整后一阶自相关、线性斜率] 向量，以真实计算演示接口；未使用学习得到的表示或预训练模型。 欧氏距离同时保留向量尺度与坐标差异。","steps_en":["Apply the explicitly specified four-statistic encoder identically to both inputs.","Collect the computed coordinates in the same fixed order for both inputs.","Take the Euclidean norm of the coordinate differences.","Interpret the score in this representation, accounting for the information it discards."],"steps_zh":["对两条输入使用完全相同、明确指定的四统计量编码器。","把计算得到的坐标按同一个固定顺序组成两个向量。","对坐标差计算欧氏范数。","结合表示所舍弃的信息，在该表示空间中解释分数。"],"animation_steps_en":["Apply the fixed mean, SD, lag-one ACF and slope encoder.","Collect matching coordinates in the same vector order.","Take the Euclidean norm of coordinate differences.","Read the score in this feature space, with its stated information loss."],"formula":"d(x,y) = sqrt(sum_j (phi_j(x)-phi_j(y))^2)","caveats_en":["This name is an interface pattern, not one uniquely defined algorithm; another encoder can produce entirely different neighbors.","The illustrative coordinates have different units and receive no scaling. No semantic, causal or task-transfer guarantee follows from a small score.","A metric on these feature vectors can be only a pseudometric on the original series when the representation loses information."],"caveats_zh":["该名称描述接口模式，不对应唯一算法；换用其他编码器会改变近邻关系。","示例坐标单位不同且未缩放；较小分数不蕴含语义、因果或任务迁移保证。","当表示损失信息时，特征空间中的度量在原序列空间上可能只是伪度量。"],"sources":[{"label":"Exact illustrative inputs and encoder definitions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/tools/method_animation_data/feature_model_embedding.py"},{"label":"Imported registry: named feature and comparison conventions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/src/echotime/data/ts_similarity_package_v2_registry.csv"}],"x":[0.0,0.8769216919004693,0.8094744111674236,0.7863961030678929,0.3905255888325767,-0.5769216919004693,-0.6000000000000001,-0.09587051423531628,0.2094744111674235,1.0863961030678926,1.5905255888325764,0.9958705142353173,0.6000000000000002,0.20412948576468337,-0.39052558883257615,0.11360389693210537],"y":[-0.2003300858899106,0.185,0.5703300858899106,1.005,1.0003300858899107,0.3250000000000002,-0.35033008588991066,-0.3550000000000001,0.07966991411008931,0.46499999999999997,0.8503300858899105,1.2849999999999995,1.2803300858899114,0.6050000000000002,-0.07033008588991083,-0.07500000000000043],"input_label":"Deterministic synthetic teaching signals, 16 samples each","parameters":{"encoder":["mean","std_ddof0","adjusted_ACF_lag1","OLS_slope"],"learned_weights":false,"coordinate_scaling":"none","comparison":"euclidean"},"result":{"label":"distance","value":0.08267238051363372,"detail":"Computed from the explicitly defined illustrative encoder; no learned weights."},"frames":[{"phase":0,"caption":"The same explicit encoder and comparison rule are applied to both inputs.","panel":{"kind":"pipeline","title":"Specified encoder protocol; no learned weights","labels":["Samples","Fixed features","Vector","Compare"],"active":0,"a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522]}},{"phase":0,"caption":"The same explicit encoder and comparison rule are applied to both inputs.","panel":{"kind":"pipeline","title":"Specified encoder protocol; no learned weights","labels":["Samples","Fixed features","Vector","Compare"],"active":1,"a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522]}},{"phase":0,"caption":"The same explicit encoder and comparison rule are applied to both inputs.","panel":{"kind":"pipeline","title":"Specified encoder protocol; no learned weights","labels":["Samples","Fixed features","Vector","Compare"],"active":2,"a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522]}},{"phase":0,"caption":"The same explicit encoder and comparison rule are applied to both inputs.","panel":{"kind":"pipeline","title":"Specified encoder protocol; no learned weights","labels":["Samples","Fixed features","Vector","Compare"],"active":3,"a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522]}},{"phase":0,"caption":"The illustrative encoder exposes its computed coordinates.","panel":{"kind":"bars","title":"Actual output of the specified encoder","a":[0.3749999999999999,0.6103252215027548],"a_label":"x features","b":[0.4125,0.5393804316064869],"b_label":"y features","labels":["mean","SD"]}},{"phase":0,"caption":"The illustrative encoder exposes its computed coordinates.","panel":{"kind":"bars","title":"Actual output of the specified encoder","a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"a_label":"x features","b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522],"b_label":"y features","labels":["mean","SD","ACF1","slope"]}},{"phase":1,"caption":"Expose 1 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999],"a_label":"x features","b":[0.4125],"b_label":"y features","labels":["mean"],"marker":0}},{"phase":1,"caption":"Expose 1 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999],"a_label":"x features","b":[0.4125],"b_label":"y features","labels":["mean"],"marker":0}},{"phase":1,"caption":"Expose 2 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999,0.6103252215027548],"a_label":"x features","b":[0.4125,0.5393804316064869],"b_label":"y features","labels":["mean","SD"],"marker":1}},{"phase":1,"caption":"Expose 2 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999,0.6103252215027548],"a_label":"x features","b":[0.4125,0.5393804316064869],"b_label":"y features","labels":["mean","SD"],"marker":1}},{"phase":1,"caption":"Expose 3 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999,0.6103252215027548,0.6441530856634482],"a_label":"x features","b":[0.4125,0.5393804316064869,0.6543907997438757],"b_label":"y features","labels":["mean","SD","ACF1"],"marker":2}},{"phase":1,"caption":"Expose 4 of 4 coordinates; each has the same meaning in x and y.","panel":{"kind":"bars","title":"Feature vectors","a":[0.3749999999999999,0.6103252215027548,0.6441530856634482,-0.003926369391909338],"a_label":"x features","b":[0.4125,0.5393804316064869,0.6543907997438757,0.013117647058823522],"b_label":"y features","labels":["mean","SD","ACF1","slope"],"marker":3}},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.03750000000000009,"value_label":"partial distance"},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.03750000000000009,"value_label":"partial distance"},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.08024595449881328,"value_label":"partial distance"},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.08024595449881328,"value_label":"partial distance"},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363],"a_label":"contributions","labels":["mean","SD","ACF1"],"marker":2},"value":0.08089637818232776,"value_label":"partial distance"},{"phase":2,"caption":"Accumulate squared differences, then take the square root.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363,0.00029049849677285233],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":3},"value":0.08267238051363372,"value_label":"partial distance"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363,0.00029049849677285233],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":0},"value":0.08267238051363372,"value_label":"final distance"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363,0.00029049849677285233],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":1},"value":0.08267238051363372,"value_label":"final distance"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363,0.00029049849677285233],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":2},"value":0.08267238051363372,"value_label":"final distance"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Squared coordinate differences","a":[0.0014062500000000067,0.005033163213425604,0.00010481078959258363,0.00029049849677285233],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":3},"value":0.08267238051363372,"value_label":"final distance"}],"echotime_status":"Low-priority addition","echotime_api":""}
