Comments (20)
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:
from android-galaxyzoo.
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.
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-L93Which I think ends up looking like this:
. . .
classification[annotations][9][sloan-11]:a-1
classification[annotations][10][user_agent]:murrayc.com-android-galaxyzooNothing outside the top-level classification key is stored.
—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from android-galaxyzoo.
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.
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.
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.
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.
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.
Sorry, that should be "user_agent", not "interface".
from android-galaxyzoo.
Thanks for checking. Done: 7b3ee22
And I've uploaded some more classifications to test that.
from android-galaxyzoo.
Could you please confirm that this is working for you?
from android-galaxyzoo.
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.
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.
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.
@willettk - re numbers of classifications, check for the user_agent
key as per #11 (comment) and 7b3ee22
from android-galaxyzoo.
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.
Good stuff! Out of interest how many unique classifying app users?
from android-galaxyzoo.
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.
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.
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)
- Crash while loading translations HOT 3
- Crash in getAccountLoginDetails() during uploadOutstandingClassifications(). HOT 1
- Crash with CONNECTIVITY_CHANGE: "Error receiving broadcast Intent" HOT 1
- Incorrect classifications for goods_full and candels_2epoch HOT 25
- New subjects - what do you need to prep? HOT 2
- Problematic timeout setting for volley request ? HOT 8
- App is serving inactive subjects? HOT 3
- Add button "Get it on F-Droid" HOT 1
- Share the image via the Share menu item HOT 2
- Beta: Crash at startup: ava.lang.VerifyError: Rejecting class com.murrayc.galaxyzoo.app.aq because it failed compile-time verification HOT 7
- Add to F-Droid HOT 1
- Provide pure floss build flavor HOT 1
- Allow user registration in the app
- Cannot download new subjects to classify HOT 10
- Poor use of vertical screen real estate on small devices HOT 2
- No good comes from screen rotation HOT 1
- Zoom HOT 1
- Images not centered
- Cannot download new subjects to classify -- again HOT 6
- update repo for 1.72
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-galaxyzoo.