Skip to content

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.

2 participants