This file contains 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 pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
from sklearn.metrics import classification_report, confusion_matrix | |
import joblib | |
import os | |
def preprocess(dataset, x_iloc_list, y_iloc, testSize): |
This file contains 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 getpass | |
import paramiko | |
import time | |
def execute_command_ssh(olt_ip, username, password): | |
try: | |
# Create an SSH client instance | |
ssh_client = paramiko.SSHClient() | |
# Automatically add the server's host key |
OlderNewer