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: add network analysis #352

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

BBO-Junbo
Copy link

No description provided.

def __init__(self, model_name: str) -> None:
# Initialize the model name
self.model_name = model_name
# Initialize the corresponding network analysis workflow based on the model name
Copy link
Collaborator

@SanyHe SanyHe Jun 15, 2024

Choose a reason for hiding this comment

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

Move this initialization into "def activate". This is the convention. Can refer to process/detect.py.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename the file as "Data_NetworkAnalysis.xlsx"

self.net_workflow = LouvainMethodWorkflow()

# Define the activate method, accepting input data X and y, and calling the community detection method of the corresponding workflow
def activate(self, X: pd.DataFrame, y: pd.DataFrame) -> None:
Copy link
Collaborator

@SanyHe SanyHe Jun 15, 2024

Choose a reason for hiding this comment

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

Inside this function, we will emulate the way of using scikit-learn style method. Can refer to process/detect.py.
It should contain at least these functions.

  • data_upload()
  • show_info()
  • fit()
  • save_hyper_parameters()
  • common_components()
  • special_components()
  • data_save()
  • model_save()

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

Successfully merging this pull request may close these issues.

None yet

2 participants