Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/sequence scatter #3785

Open
wants to merge 3 commits into
base: feat/sequence-scatter
Choose a base branch
from

Conversation

Weiyu-Kong
Copy link

@Weiyu-Kong Weiyu-Kong commented Mar 7, 2025

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

close #3574

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

  • Plot the data under different numbers of iterations.

    • Use the player to dynamically load data for each iteration.
  • Plot the relationships between samples.

    • Register mouse hover events to dynamically generate edge data.
  • Plot the clustering boundaries of different categories.

    • Set the classification background as the graphic element background to support scaling follow.

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough


let TRAINING_PROCESS_ID = 1; // 1 for code search process, 2 for image classification process

let original_data, training_info, task_type, scope;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2种任务的效果都蛮好的,建议拆分成2个demo。


/*
create data for sequence-scatter
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

数据处理的逻辑可以内置在packages/vchart-extension/src/charts/sequence-scatter/utils中,导出使用即可。
input:task_type -> output: chartData

y0: pos[1],
x1: original_data[epoch].projection[neighbor][0],
y1: original_data[epoch].projection[neighbor][1],
type:0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type如果没有特殊意义,建议配置成字符串,'intra_similarity' / 'inter_similarity'之类的,语义化,比较好理解

type:0,
color: label_color_dict[label_text[label_index[id]]]
});
edgeId++;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edgeId同上

Helper functions for preprocessing original data
*/
function transformEdges(specData, pointX, pointY) {
const endpoints: any[] = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个类型也是,有对应的定义IterationEdgesData[],尽量避免用any

/*
Helper functions for preprocessing original data
*/
function transformEdges(specData, pointX, pointY) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型定义可以补充下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants