Documentation ¶
Overview ¶
Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomIDs ¶
CreateRandomIDs generates random string IDs.
func CreateRandomIDsWithLength ¶
CreateRandomIDsWithLength generates random string IDs that have specified length.
func CreateSerialIDs ¶
CreateSerialIDs generates serial number IDs.
Types ¶
type Dataset ¶
type Dataset interface { Train() [][]float32 TrainAsFloat64() [][]float64 Query() [][]float32 QueryAsFloat64() [][]float64 Distances() [][]float32 DistancesAsFloat64() [][]float64 Neighbors() [][]int IDs() []string Name() string Dimension() int DistanceType() string ObjectType() string }
Dataset is representation of train and test dataset.
func LoadDataWithRandomIDs ¶
LoadDataWithRandomIDs returns approximate nearest neighbor benchmark dataset with random IDs.
func LoadDataWithSerialIDs ¶
LoadDataWithSerialIDs returns approximate nearest neighbor benchmark dataset with serial IDs.