-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
from apricot import FacilityLocationSelection
import numpy
X = numpy.exp(numpy.random.randn(1000, 50))
print(X)
X_corr = numpy.corrcoef(X) ** 2
model = FacilityLocationSelection(10, 'corr',initial_subset=[1, 5, 6, 8, 10])
model.partial_fit(X)
print(model.ranking, X_corr[model.ranking].max(axis=0).sum())
Gives an error:
ValueError: operands could not be broadcast together with shapes (995,) (1000,)
The size mismatch is equal to the initial subset size and the error only occurs when I use an initial subset so something goes wrong with the streaming with the initial subset.
Metadata
Metadata
Assignees
Labels
No labels