oraclesai.weights.KNNWeightsDefinition
- class KNNWeightsDefinition(k: int = 4)
- Defines a spatial relationship of K nearest neighbors. - Parameters:
- k – Number of neighbors. 
 - Methods - __init__([k])- from_dict(w_dict)- from_json(json_str)- Attributes - index_allowed- Returns true if the spatial weights may be calculated by passing a spatial index of the data.