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

graph_df sample data is missing in test folder. #47

Open
vishvas-chauhan opened this issue Sep 6, 2023 · 2 comments
Open

graph_df sample data is missing in test folder. #47

vishvas-chauhan opened this issue Sep 6, 2023 · 2 comments

Comments

@vishvas-chauhan
Copy link

vishvas-chauhan commented Sep 6, 2023

is it possible to see the graph_df data that you used to test the model.
I tried a sample data but it doesn't match.

Cause Effect Strength Direction
0 NetworkTraffic Throughput Weak inhibits
1 Workload Latency Strong inhibits

🥹 didn't work !
Can you please add a sample data for graph_df so i can try in create the model. BayesianNetwork(config=BayesianNetwork.config_class(graph=graph_df))
graph_df:

@chenghaoliu89
Copy link
Contributor

Hi @vishvas-chauhan you can refer to test_bayesian.py or RootCauseAnalysis.ipynb for a sample of graph_df,

@vishvas-chauhan
Copy link
Author

vishvas-chauhan commented Sep 8, 2023

hi @chenghaoliu89
i have training data in below format, that can be converted to pd.DataFrame. How can i train the BayesianNetwork on this data. And, please add the some highlights for graph_df data (is it an adjacency_metrics form of data). can you help to create or get graph_df data. after converting to 3d metrics it raise
nx.NetworkXError("Input is not a valid edge list") from err networkx.exception.NetworkXError: Input is not a valid edge list

  • train_df below
    data = {
    'event_time': ['2023-01-04', '2023-01-08'],
    'ServerStatus': ['Down', 'Up'],
    'NetworkTraffic': [45, 87],
    'Workload': [2, 4],
    'ErrorRate': [0.784977, 0.160914],
    'Latency': [82, 18],
    'Throughput': [385, 764]
    }

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

No branches or pull requests

2 participants