Skip to content
Discussion options

You must be logged in to vote

Ok, I tried to work again with the parameter y_func and I found out the mistake i made. I misinterpreted the horizon paramater as it says in the docs number of future datapoints to predict. This caused me some confusion, as also negative values are allowed, which means not only future datapoints are to be considered with this parameter.

The updated code therefore:

def y_func_test(x, ratio=0.2):
    processed_labels = np.array([])
    for labels in x:
        size = len(labels)
        min_occ = int(size*ratio)
        unique, counts = np.unique(labels, return_counts=True)
        # 0 as uninteresting label
        label = 0
        count_dict = dict(zip(unique, counts))
        
        c…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JakobPuehringerIpercept
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants