-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: main
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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()
No description provided.