text_html_output_1.png
import matplotlib.pyplot as plt

import numpy as np

def plot_metrics_relationship(rule_matrix, col1, col2):
    """
    shows the relationship between the two input columns 
    """
    fit = np.polyfit(rule_matrix[col1], rule_matrix[col2], 1)
    fit_funt = np.poly1d(fit)

def compare_time_exec(algo1=list, algo2=list, algo3=list):
    """
        - Algo1 list contains first algo details.
        - Algo2 list having the details of second algorithm
        - Algo3 list have the data of third algorithm
    """
    execution_times = [algo1[1], algo2[1], algo3[1]]
    algo_names = (algo1[0], algo2[0], algo3[0])
    y = np.arange(len(algo_names))
    plt.xticks(y, algo_names)

algo1 = ['Fp Growth', fp_growth_exec_time]
algo2 = ['Apriori', apriori_exec_time]
algo3 = ['Fpmax', fpmax_exec_time]
compare_time_exec(algo1, algo2, algo3)