termgraph icon indicating copy to clipboard operation
termgraph copied to clipboard

to solve the over length of bar problem

Open songmuyi opened this issue 6 years ago • 1 comments

to solve the over length of bar problem for me (as i have really big number in prediction) it's about the find_max function , the original function only find the biggest number in target array, so i change the fucnction to:

def find_max(list_):
    """Return the maximum value in sublist of list."""
    m1=max([sublist[-1] for sublist in list_])
    m2 = max([sublist[0] for sublist in list_])
    return max([m1,m2]) 

and solved my problem :)

songmuyi avatar Jun 12 '19 03:06 songmuyi

@songmuyi Do you have a sample data that I can test with?

mkaz avatar Jun 19 '20 18:06 mkaz