lr_findmethod, originally proposed by researcher Leslie Smith.
MultiCategoryBlockwhich will encode all the vocabulary into a list of 0’s and have 1s where data is present. So, by checking where 1’s are we can identify which category(s) that image belongs to. This technique of representing the data in 1’s on a vector of 0s is called One-hot encoding.
accuracy_multiwith a threshold that will address the problem.
Note: Since the threshold for the accuracy_multi is by default 0.5, we can override the function using the
partialfunction from python.
pointblockinstead of a category block since the labels represents coordinates. Another important point to remember while construction the Learner is to provide the
y_range=(-1,1)attribute to make sure that we give the range of the rescaled coordinates.