This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud compute --project=test-prj firewall-rules create mlflow-server --direction=INGRESS --priority=999 --network=default --action=ALLOW --rules=tcp:5000 --source-ranges=0.0.0.0/0 --target-tags=mlflow-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mlflow server --backend-store-uri ./mlruns --default-artifact-root gs://mlflow_artifacts/artifacts --host 172.18.x.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'service_account.json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from google.cloud import storage | |
| client = storage.Client() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from github.MainClass import Github | |
| import networkx as nx | |
| import json | |
| import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mount_graph(name_repo, graph): | |
| nx.set_node_attributes(graph,'qt_contr',1) | |
| list_repo = [name_repo] | |
| g = Github('api_key') # Use your own api key here | |
| with open('countries.json', 'r') as f: | |
| data=f.read() | |
| paises = json.loads(data) | |
| try: | |
| repo =g.get_repo(name_repo) | |
| i = 0 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Afghanistan": [ | |
| "Herat", | |
| "Kabul", | |
| "Kandahar", | |
| "Molah", | |
| "Rana", | |
| "Shar", | |
| "Sharif", | |
| "Wazir Akbar Khan" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def plot_save(repo_name): | |
| name = repo_name.split("/")[-1] | |
| plt.figure(figsize = (30,30)) | |
| graph = nx.Graph() | |
| graph = mount_graph(repo_name, graph) | |
| pos = nx.spring_layout(graph, scale=3) | |
| n = graph.number_of_nodes() | |
| nx.draw(graph, pos, node_size=40000, node_color=range(n), with_labels=True, font_size=20, font_weight='bold', cmap=plt.cm.Blues) | |
| nx.write_graphml(graph, name+"_countries.graphml") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.