16 lines
420 B
Python
16 lines
420 B
Python
import numpy as np
|
|
import scipy.sparse as sp
|
|
from quapy.data import LabelledCollection
|
|
from typing import List, Optional
|
|
|
|
|
|
class ExtendedCollection(LabelledCollection):
|
|
def __init__(
|
|
self,
|
|
b_coll: LabelledCollection,
|
|
instances: np.ndarray | sp.csr_matrix,
|
|
labels: np.ndarray,
|
|
classes: Optional[List] = None,
|
|
):
|
|
super().__init__(instances, labels, classes=classes)
|