All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.rankeval.DiscountedCumulativeGain.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?;com/groupbyinc/flux/index/rankeval/DiscountedCumulativeGainjava/lang/Object3com/groupbyinc/flux/index/rankeval/EvaluationMetricDiscountedCumulativeGain.javaBcom/groupbyinc/flux/index/rankeval/DiscountedCumulativeGain$DetailDetail5com/groupbyinc/flux/common/xcontent/ToXContent$Params.com/groupbyinc/flux/common/xcontent/ToXContent
Params%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup	normalizeZ	DEFAULT_KI
kunknownDocRatingLjava/lang/Integer;NAMELjava/lang/String;dcgLOG2DK_FIELD'Lcom/groupbyinc/flux/common/ParseField;NORMALIZE_FIELDUNKNOWN_DOC_RATING_FIELDPARSER>Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser;?Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser;()V(ZLjava/lang/Integer;I)V*,
-this=Lcom/groupbyinc/flux/index/rankeval/DiscountedCumulativeGain;*+
1	3	5	75(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Vjava/io/IOException:0com/groupbyinc/flux/common/io/stream/StreamInput<readBoolean()Z>?
=@readOptionalVInt()Ljava/lang/Integer;BC
=DreadVInt()IFG
=Hin2Lcom/groupbyinc/flux/common/io/stream/StreamInput;writeTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V1com/groupbyinc/flux/common/io/stream/StreamOutputNwriteBoolean(Z)VPQ
ORwriteOptionalVInt(Ljava/lang/Integer;)VTU
OV	writeVInt(I)VXY
OZout3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;getWriteableName()Ljava/lang/String;getNormalizegetKgetUnknownDocRatingforcedSearchSize()Ljava/util/Optional;java/lang/IntegerevalueOf(I)Ljava/lang/Integer;gh
fijava/util/Optionalkof((Ljava/lang/Object;)Ljava/util/Optional;mn
loevaluate?(Ljava/lang/String;[Lcom/groupbyinc/flux/search/SearchHit;Ljava/util/List;)Lcom/groupbyinc/flux/index/rankeval/EvalQueryQuality;joinHitsWithRatingsI([Lcom/groupbyinc/flux/search/SearchHit;Ljava/util/List;)Ljava/util/List;stujava/util/ArrayListwjava/util/Listysize{Gz|*Y
x~iterator()Ljava/util/Iterator;??z?java/lang/String?'[Lcom/groupbyinc/flux/search/SearchHit;?java/util/Iterator?hasNext????next()Ljava/lang/Object;????1com/groupbyinc/flux/index/rankeval/RatedSearchHit?	getRating?d
??orElse&(Ljava/lang/Object;)Ljava/lang/Object;??
l?add(Ljava/lang/Object;)Z??z?	isPresent??
l?
computeDCG(Ljava/util/List;)D??
?stream()Ljava/util/stream/Stream;??z?"java/lang/invoke/LambdaMetafactory?metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;??
???(Ljava/lang/Object;)I?0com/groupbyinc/flux/index/rankeval/RatedDocument??G
???5(Lcom/groupbyinc/flux/index/rankeval/RatedDocument;)I?
applyAsInt$()Ljava/util/function/ToIntFunction;???java/util/stream/Stream?mapToInt@(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;????java/util/stream/IntStream?boxed????java/util/stream/Collectors?toList()Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????java/util/Collections?reverseOrder()Ljava/util/Comparator;??
??java/util/Comparator?	nullsLast.(Ljava/util/Comparator;)Ljava/util/Comparator;????sort)(Ljava/util/List;Ljava/util/Comparator;)V??
??java/lang/Math?min(II)I??
??subList(II)Ljava/util/List;??z?3com/groupbyinc/flux/index/rankeval/EvalQueryQuality?(Ljava/lang/String;D)V*?
??addHitsAndRatings(Ljava/util/List;)V??
??(DDI)V*?
	?setMetricDetails4(Lcom/groupbyinc/flux/index/rankeval/MetricDetail;)V??
??hit3Lcom/groupbyinc/flux/index/rankeval/RatedSearchHit;
allRatings%Ljava/util/List;Ljava/util/List;taskIdhits	ratedDocsDLjava/util/List;	ratedHitsELjava/util/List;ratingsInSearchHitsunratedResultsresultidcgevalQueryQuality5Lcom/groupbyinc/flux/index/rankeval/EvalQueryQuality;@intValueG
fpow(DD)D
?log(D)D
?!"	ratingratingsrankfromXContents(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/rankeval/DiscountedCumulativeGain;'(	!
.?&$	A\(Ljava/lang/String;Ljava/lang/Integer;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;=C
.D#$	FJ(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;=H
.I	endObjectK0
.Lbuilder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;equalsgetClass()Ljava/lang/Class;ST
Ujava/lang/BooleanW(Z)Ljava/lang/Boolean;gY
XZjava/util/Objects\'(Ljava/lang/Object;Ljava/lang/Object;)ZR^
]_objLjava/lang/Object;otherhashCodehash([Ljava/lang/Object;)Ief
]glambda$static$0R([Ljava/lang/Object;)Lcom/groupbyinc/flux/index/rankeval/DiscountedCumulativeGain;[Ljava/lang/Object;kbooleanValuem?
Xnargs
normalizedLjava/lang/Boolean;optK((Ljava/lang/String;[Ljava/lang/String;)V*v
9wunknown_doc_ratingz?ij
}~j()Ljava/util/function/Function;%??3(Ljava/lang/String;ZLjava/util/function/Function;)V*?
$?optionalConstructorArg!()Ljava/util/function/BiConsumer;??
$?declareBooleanI(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/common/ParseField;)V??
$?
declareInt??
$?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
Exceptions+()Ljava/util/Optional;LocalVariableTypeTable
StackMapTable?(Ljava/lang/String;[Lcom/groupbyinc/flux/search/SearchHit;Ljava/util/List;)Lcom/groupbyinc/flux/index/rankeval/EvalQueryQuality;((Ljava/util/List;)DBootstrapMethods
SourceFileInnerClasses!
?? !"#$%$&$'(?)*+?7	*
?.??	/0?
EF*,?l*?2*?4*,?6*?8??*/0?QR	STU*9?a*?2*+?A?4*+?E?6*+?I?8??/0JK?WXYZ[?;LM?Y+*?4?S+*?6?W+*?8?[??/0\]?_`ab?;^_?- ??/0?f`??/*?4??/0?jaG?/*?8??/0?nbC?/*?6??/0?ucd?5*?8?j?p??/0?{??qr?s?,-?v:?xY?}?:6??:???7????:??*?6???f??W???????????99	9*?4?b-?????????͹??z:

?׸ݸ?
?}
?}?????9??
o9	?9	??Y+	??:

??
?	Y????
???
9%???=?
?/0???????h?"l?	"	o?
"?
?*?=??
?????^????9?P?[?^?a?h?l?o?v??????????????????????F?#??zzz?:??p??zzzz???
????L<I*??:???7???f:? (
???g`???oocI????(??*"%LJH"?L??"???"?'?D?G?J?????7f???	 ?6?"*?(???)*??+,??L+?2W+ ?5W+?7?<*?4?@W*?6?+?B?<*?6?EW+?G?<*?8?JW+?MW+?MW+?? L/0LNOLPQ?&	????"?1?@?E?J??1?;R???Y*+??+?*?V+?V??+?M*?4?[,?4?[?`?)*?6,?6?`?*?8?j,?8?j?`???? Y/0Yab<c0?&	??????9?C?X??
?>@dG?M#?Y*?4?[SY*?6SY*?8?jS?h??#/0??
ij??5*2?XL*2?fM?Y+??+?o*2?f,?
?,??.?? 5pk.qr's????$?4??d?lXf?lXf?lXff?lXfft+??s
???9Yu???x?G?9Yy???x?7?9Y{???x?B?$Y ?????"?"???7???"???B???"???G????&	B	??+?<?N?Z?f?r???????|???	
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy