[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-GIFT] A small GIFT client base in Groovy,
From: |
higo ic |
Subject: |
Re: [help-GIFT] A small GIFT client base in Groovy, |
Date: |
Tue, 7 Apr 2009 11:22:57 +0800 |
I see this line on the script
"query-step"("algorithm-id" : "adefault","query-type":"at-random","result-size":20)
So,how to set the query-type when i want to get the 'right' calculated-similarity
i add println "Query results similarity: ${queryResultSimilarity}" After println "Query results: ${queryResultUrls}"
And this is the output:
Successfully opened 7 ["a-cidf", "a-perl", "adefault"]
adefault found, I will now configure the session
Sent message<?xml version="1.0" encoding="UTF-8" standalone="no"?><mrml session-id='7'>
<algorithm algorithm-id='adefault' collection-id='' algorithm-type='adefault' cui-weighting-function='ClassicalIDF' cui-block-texture-histogram='no' cui-block-texture-blocks='yes' cui-block-color-histogram='yes' cui-block-color-blocks='yes' cui-pr-percentage-of-features='70' />
<query-step algorithm-id='adefault' query-type='at-random' result-size='20' />
</mrml>Query results: ["
http://viper.unige.ch/images/corel/6100/78024_small.jpg", "
http://viper.unige.ch/images/corel/6100/193016_small.jpg", "
http://viper.unige.ch/images/corel/6100/36079_small.jpg", "
http://viper.unige.ch/images/corel/6100/185061_small.jpg", "
http://viper.unige.ch/images/corel/6100/116070_small.jpg", "
http://viper.unige.ch/images/corel/6100/155008_small.jpg", "
http://viper.unige.ch/images/corel/6100/16077_small.jpg", "
http://viper.unige.ch/images/corel/6100/86046_small.jpg", "
http://viper.unige.ch/images/corel/6100/180055_small.jpg", "
http://viper.unige.ch/images/corel/6100/96019_small.jpg", "
http://viper.unige.ch/images/corel/6100/96084_small.jpg", "
http://viper.unige.ch/images/corel/6100/137045_small.jpg", "
http://viper.unige.ch/images/corel/6100/193062_small.jpg", "
http://viper.unige.ch/images/corel/6100/14070_small.jpg", "
http://viper.unige.ch/images/corel/6100/96024_small.jpg", "
http://viper.unige.ch/images/corel/6100/18056_small.jpg", "
http://viper.unige.ch/images/corel/6100/16012_small.jpg", "
http://viper.unige.ch/images/corel/6100/139004_small.jpg", "
http://viper.unige.ch/images/corel/6100/55022_small.jpg", "
http://viper.unige.ch/images/corel/6100/17084_small.jpg"]
Query results similarity: ["1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000", "1.000000"]
2009/4/7 Wolfgang Müller
<address@hidden>
You get a result with all 1.0 for a query "at random". This does a random selection of elements. Similarities have no meaning there.
On Mon, Apr 6, 2009 at 2:55 PM, higo ic
<ichigo.bh@gmail.com> wrote:
Hi, Wolfgang
I use your groovy to my server. And i get a result with the similarities all 1.000
gift-last-out-message.mrml:
<query-result-element calculated-similarity="1.000000" image-location........................ />
<query-result-element calculated-similarity="1.000000" image-location........................ />
<query-result-element calculated-similarity="1.000000" image-location........................ />
<query-result-element calculated-similarity="1.000000" image-location........................ />
<query-result-element calculated-similarity="1.000000" image-location="...................... />
<query-result-element calculated-similarity="1.000000" image-location=".....................
i want to know the reason ......