Documentation

Introduction

API Documentation

Generic information

Each participant must ask for a login and a password

Getting new data

  • Adresse: http://[server address]/ask
  • Arguments:
    • team = login
    • password = password
    • experiment = experiment name - each run must correspond to a different name - the evaluation will be made for each experiment submitted by a team
    • content = 1 if one wants to get the content of data, 0 elsewhere
    • label = 1 if one wants to get the label of data, 0 elsewhere
      • content=1&label=1 corresponds to classical supervised learning data
      • content=1&label=0 corresponds to unsupervised learning data
      • content=0&label=1 corresponds to an active learning schema (i.e asking for the label of a particular datum)
      • generator = the data generator to use (corresponding to a particular distribution over data) - see Tasks Descriptions
      • nb = the number of datum to generate
  • Output: The output format is one datum per line
 [id] [values separated by space] [label]

 wget -O output.txt http://[server]/ask?team=machin&password=truc&content=1&label=0&nb=1000&experiment=chose&generator=p1

Getting data content or/and label

  • Adresse: http://[server address]/ask
  • Arguments:
    • team = login
    • password = password
    • experiment = experiment name - each run must correspond to a different name - the evaluation will be made for each experiment submitted by a team
    • content = 1 if one wants to get the content of data, 0 elsewhere
    • label = 1 if one wants to get the label of data, 0 elsewhere
      • content=1&label=1 corresponds to classical supervised learning data
      • content=1&label=0 corresponds to unsupervised learning data
      • content=0&label=1 corresponds to an active learning schema (i.e asking for the label of a particular datum)
      • id = the id of the datum to acquired
  • Output: The output format is one (datum per) line:
 [id] [values separated by space] [label]

Getting testing set

  • Adresse: http://[server address]/gettest
  • Arguments:
    • name = Name of the test set
 wget -O output.txt http://[server]/gettest?name=p1_test

Submitting test results

  • Adresse: http://[server address]/evaluate
  • WARNING: POST (not GET)
  • Arguments:
    • team = login
    • password = password
    • experiment = experiment name - each run must correspond to a different name - the evaluation will be made for each experiment submitted by a team
    • name = name of the test set
    • labels = id:cateegory,id:category,id:category,....

Example de submission.txt

 experiment=test&team=ludo&password=123456&name=p1_test&labels=0:2,1:2,2:3,3:6,4:0,5:7,6:3,7:9,8:2,9:6,10:4,11:9,...

Commande:

 wget -O data/toto.accuracy --post-file=submission.txt http://li328.lip6.fr:8280/cap/evaluate

Tâches

Serveur = http://li328.lip6.fr:8280/cap

  • p1_test : p1
  • p2_test : p2_1, p2_2
  • p3_test : p3_1,..., p3_3
  • p4_test : p4_1,..., p4_9

CORIA HackDay


CAP HackDay


edit SideBar



Edit - History - Print - Recent Changes - Search
Page last modified on July 07, 2014, at 02:28 PM