genParameters(fpset, similarity = fpSim, sampleFraction = 1, ...)
FPset
.
sampleFraction
to the fraction of all pairwise similarities to
use. For example, for a database of 100 fingerprints, there are 10,000 pairs. Setting
sampleFraction
to 0.5 will result in only 5,000 pairs being used to estimate the
parameters.Parameters are conditioned on the number of set bits. This function therefore groups fingerprints by the number of set bits they have and then estimates parameters for each group. A set of global parameters is also estimated and returned for use in cases where there was not enough data to estimate the parameters for a particular number of set bits.
fpSim
library(ChemmineR)
data(apset)
fpset=desc2fp(apset) #get a fingerprint database
params = genParameters(fpset)
scores = fpSim(fpset[[1]],fpset,parameters=params,top=10)
Run the code above in your browser using DataLab