{"id":"embedding_similarity","title":"Specified encoder protocol embedding similarity","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. Cosine compares vector direction and is defined here for nonzero feature vectors.","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.","Normalize by both vector lengths and sum coordinate products to obtain cosine similarity.","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.","Normalize vector products to obtain cosine similarity.","Read the score in this feature space, with its stated information loss."],"formula":"s(x,y) = dot(phi(x),phi(y)) / (norm(phi(x))*norm(phi(y)))","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.","Cosine ignores positive rescaling of the entire feature vector; 1-cosine is generally not a metric, and zero vectors require an explicit policy."],"caveats_zh":["该名称描述接口模式，不对应唯一算法；换用其他编码器会改变近邻关系。","示例坐标单位不同且未缩放；较小分数不蕴含语义、因果或任务迁移保证。","余弦忽略整个特征向量的正比例缩放；1-cosine 通常不满足度量公理，零向量还需明确处理规则。"],"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":"cosine"},"result":{"label":"similarity","value":0.9964641594844924,"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":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.17025307425780933,"value_label":"partial dot sum"},{"phase":2,"caption":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.17025307425780933,"value_label":"partial dot sum"},{"phase":2,"caption":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.5325763598842389,"value_label":"partial dot sum"},{"phase":2,"caption":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.5325763598842389,"value_label":"partial dot sum"},{"phase":2,"caption":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408],"a_label":"contributions","labels":["mean","SD","ACF1"],"marker":2},"value":0.9965208469237796,"value_label":"partial dot sum"},{"phase":2,"caption":"Sum normalized dot-product contributions from the displayed coordinates.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408,-5.668743928724824e-05],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":3},"value":0.9964641594844924,"value_label":"partial dot sum"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408,-5.668743928724824e-05],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":0},"value":0.9964641594844924,"value_label":"final similarity"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408,-5.668743928724824e-05],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":1},"value":0.9964641594844924,"value_label":"final similarity"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408,-5.668743928724824e-05],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":2},"value":0.9964641594844924,"value_label":"final similarity"},{"phase":3,"caption":"Read the completed comparison using every retained coordinate.","panel":{"kind":"bars","title":"Dot-product terms / fixed full-vector norms","a":[0.17025307425780933,0.36232328562642957,0.4639444870395408,-5.668743928724824e-05],"a_label":"contributions","labels":["mean","SD","ACF1","slope"],"marker":3},"value":0.9964641594844924,"value_label":"final similarity"}],"echotime_status":"Low-priority addition","echotime_api":""}
