Git Product home page Git Product logo

Comments (20)

murraycu avatar murraycu commented on May 31, 2024

Gladly:
8b7ac85

I've use the existing User-Agent string instead of just "android-app" because it seems more specific in case there are ever more active apps. People might think they should reuse "android-app" but they wouldn't reuse someone else's domain.

So a classification now looks like this (in the POST's content):

interface:murrayc.com-android-galaxyzoo
classification[subject_ids][]:504e57f9c499611ea6019474
classification[annotations][0][sloan-0]:a-1
classification[annotations][1][sloan-1]:a-1
classification[annotations][2][sloan-2]:a-1
classification[annotations][3][sloan-3]:a-0
classification[annotations][4][sloan-9]:a-1
classification[annotations][5][sloan-10]:a-1
classification[annotations][6][sloan-4]:a-1
classification[annotations][7][sloan-5]:a-0
classification[annotations][8][sloan-6]:a-0
classification[annotations][8][sloan-6]:x-4
classification[annotations][9][sloan-11]:a-1

However, maybe you'd prefer it to be classification[interface] instead of interface?

For existing classifications, you can also use the User-Agent of the HTTP Post, if that gets through to your database:

public static final String USER_AGENT_MURRAYC = "murrayc.com-android-galaxyzoo";

from android-galaxyzoo.

brian-c avatar brian-c commented on May 31, 2024

Galaxy Zoo is using an old branch of the main Zooniverse library, so it has its own Classification model which doesn't include the user agent.

Usually it's saved as an annotation (not a great place, but it's stuck for now) like this: https://github.com/zooniverse/Zooniverse/blob/master/src/models/classification.coffee#L91-L93

Which I think ends up looking like this:

. . .
classification[annotations][9][sloan-11]:a-1
classification[annotations][10][user_agent]:murrayc.com-android-galaxyzoo

Nothing outside the top-level classification key is stored.

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

I agree that storing user agent annotations are annoying (especially for
RGZ; I hate them so much), but I suppose we'll deal with it as long as it's
stored somewhere.

On Fri Dec 05 2014 at 8:41:08 AM Brian Carstensen [email protected]
wrote:

Galaxy Zoo is using an old branch of the main Zooniverse library, so it
has its own Classification model which doesn't include the user agent.

Usually it's saved as an annotation (not a great place, but it's stuck for
now) like this: https://github.com/zooniverse/Zooniverse/blob/master/src/
models/classification.coffee#L91-L93

Which I think ends up looking like this:

. . .
classification[annotations][9][sloan-11]:a-1
classification[annotations][10][user_agent]:murrayc.com-android-galaxyzoo

Nothing outside the top-level classification key is stored.


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

So I should add this parameter instead of the "interface" thing?

classification[annotations][the-last-number][user_agent]:murrayc.com-android-galaxyzoo

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

Think so. Will that work, @brian-c ?

On Fri, Dec 5, 2014, 13:56 Murray Cumming [email protected] wrote:

So I should add this parameter instead of the "interface" thing?

classification[annotations][the-last-number][user_agent]:murrayc.com-android-galaxyzoo


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-galaxyzoo.

brian-c avatar brian-c commented on May 31, 2024

That should be fine. @willettk are you working with the data directly from Mongo? I though everybody got a nice CSV with labelled columns.

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

For GZ, yes. I work with the mongo data from radio galaxy zoo, where user
agent data is much more of a pain.

On Fri, Dec 5, 2014, 15:13 Brian Carstensen [email protected]
wrote:

That should be fine. @willettk https://github.com/willettk are you
working with the data directly from Mongo? I though everybody got a nice
CSV with labelled columns.


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

OK:
d025448

Here are the content parameters from an example classification POST:

classification[subject_ids][]:504e4706c499611ea600d59d
classification[favorite][]:true
classification[annotations][0][sloan-0]:a-1
classification[annotations][1][sloan-1]:a-1
classification[annotations][2][sloan-2]:a-0
classification[annotations][3][sloan-3]:a-0
classification[annotations][4][sloan-9]:a-1
classification[annotations][5][sloan-10]:a-5
classification[annotations][6][sloan-4]:a-1
classification[annotations][7][sloan-5]:a-1
classification[annotations][8][sloan-11]:a-1
classification[annotations][9][interface]:murrayc.com-android-galaxyzoo

I've uploaded a couple of classifications already so you can check it on the server.

from android-galaxyzoo.

brian-c avatar brian-c commented on May 31, 2024

Sorry, that should be "user_agent", not "interface".

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

Thanks for checking. Done: 7b3ee22

And I've uploaded some more classifications to test that.

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

Could you please confirm that this is working for you?

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

There are several classifications that now have the annotation marked as coming from Android. However, there are only 13 in the entire sample - I would have expected much more than that if you've deployed this to the full audience.

Also: the new classification document has additional data normally associated with the subject (example below). I don't know if it's a problem, but it does bulk up the data products somewhat unnecessarily - I thought normally that one would get that data by linking to the subject_id. Is there a particular reason that it's been added, @brian-c or @murraycu?

> db.galaxy_zoo_classifications.findOne({'annotations.interface':{$exists:true}})
{
    "_id" : ObjectId("5482b4c227b56239a200000c"),
    "annotations" : [
        {
            "sloan-0" : "a-1"
        },
        {
            "sloan-1" : "a-0"
        },
        {
            "sloan-8" : "a-1"
        },
        {
            "sloan-5" : "a-1"
        },
        {
            "sloan-11" : "a-1"
        },
        {
            "interface" : "murrayc.com-android-galaxyzoo"
        }
    ],
    "created_at" : ISODate("2014-12-06T07:48:18Z"),
    "favorite" : [
        "true"
    ],
    "project_id" : ObjectId("502a90cd516bcb060c000001"),
    "subject_ids" : [
        ObjectId("504e5d62c499611ea601b902")
    ],
    "subjects" : [
        {
            "id" : ObjectId("504e5d62c499611ea601b902"),
            "zooniverse_id" : "AGZ0002f42",
            "location" : {
                "standard" : "http://www.galaxyzoo.org.s3.amazonaws.com/subjects/standard/1237663229070082210.jpg",
                "thumbnail" : "http://www.galaxyzoo.org.s3.amazonaws.com/subjects/thumbnail/1237663229070082210.jpg",
                "inverted" : "http://www.galaxyzoo.org.s3.amazonaws.com/subjects/inverted/1237663229070082210.jpg"
            },
            "coords" : [
                279.399026983604,
                78.0015454472869
            ],
            "metadata" : {
                "counters" : {
                    "feature" : 24,
                    "smooth" : 13,
                    "star" : 13
                }
            }
        }
    ],
    "tutorial" : false,
    "updated_at" : ISODate("2014-12-06T07:48:02.702Z"),
    "user" : {
        "classification" : "feature"
    },
    "user_ip" : "88.217.180.214",
    "workflow_id" : ObjectId("50251c3b516bcb6ecb000002")
}

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

There are several classifications that now have the annotation marked as coming from Android.

Good, so it's basically working.

However, there are only 13 in the entire sample

I bet most of them are me testing.

I would have expected much more than that if you've deployed this to the full audience.

There are still not that many people using it, and I'd expect a lot of people to install it and forget about it after playing with it. Broadly, about 100 people have had the new version for about a week, during a time when there weren't many new installs. I'd be fascinated to know what the visitor retention numbers are for the website.

Also: the new classification document has additional data normally associated with the subject (example below).

Is this specific to the classifications from the app? If so, then I think someone would have to look at what's happening on the server to trigger a change in behaviour.

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

My bad - virtually all classifications (except for the first couple) do have that subject data in the classification document, so that's nothing specific to the app.

from android-galaxyzoo.

camallen avatar camallen commented on May 31, 2024

@willettk - re numbers of classifications, check for the user_agent key as per #11 (comment) and 7b3ee22

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

Ah - thanks, @camallen! Looks like we have 5006 classifications so far from
the app; much more like what I'd thought.

On Wed Dec 17 2014 at 4:13:46 PM Campbell Allen [email protected]
wrote:

@willettk https://github.com/willettk - re numbers of classifications,
check for the user_agent key as per #11 (comment)
#11 (comment)
and 7b3ee22
7b3ee22


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-galaxyzoo.

camallen avatar camallen commented on May 31, 2024

Good stuff! Out of interest how many unique classifying app users?

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

46 so far. Embarrassing that I'm apparently not among them; guess I haven't logged back in since the latest update.

db.galaxy_zoo_classifications.distinct('user_name',{'annotations.user_agent':{$exists:true}})

from android-galaxyzoo.

willettk avatar willettk commented on May 31, 2024

About 27% (1354 classifications) on the app are from non-logged in users so far. 23 different countries, too (most are from Germany, UK, or the US).

from android-galaxyzoo.

murraycu avatar murraycu commented on May 31, 2024

Looks like we have 5006 classifications

It's good to know people are using it. Thanks.

So, I think this is done. Closing.

from android-galaxyzoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.