peewee Documentation Release 3.0.0classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression classmethod bm25([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression classmethod bm25([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression classmethod bm25([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression classmethod bm25([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0classmethod rank([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate classmethod bm25([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0classmethod rank([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate classmethod bm25([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0classmethod rank([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate classmethod bm25([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression classmethod bm25([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate an expression bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0classmethod rank([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate classmethod bm25([col1_weight, col2_weight...coln_weight]) Parameters col_weight (float) – (Optional) weight to give to the *i*th column of the model. By default all columns have a weight of 1.0. Generate bm25f([col1_weight, col2_weight...coln_weight]) Identical to bm25(), except that it uses the BM25f variant of the BM25 ranking algorithm. classmethod lucene([col1_weight, col2_weight...coln_weight]) Identical0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 1.0.0def __init__(self): self.total_weight = 0.0 self.total_ct = 0.0 def step(self, value, wt=None): wt = wt or 1.0 self.total_weight += wt self.total_ct += wt * value value def finalize(self): if self.total_weight != 0.0: return self.total_ct / self.total_weight return 0.0 ext_db.adapter.register_aggregate(WeightedAverage, 2, 'weighted_avg')0 码力 | 101 页 | 163.20 KB | 1 年前3
共 13 条
- 1
- 2













