[ 
https://issues.apache.org/jira/browse/SINGA-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952247#comment-14952247
 ] 

ASF subversion and git services commented on SINGA-85:
------------------------------------------------------

Commit e928ebba551cb6a452b0df3909677845ce151296 in incubator-singa's branch 
refs/heads/master from [~flytosky]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=e928ebb ]

SINGA-85 Add functions for extracting features and test new data

* to test pre-trained model,
  1. add checkpoint_path in job configuration to the checkpoint files
  2. setup input layer properly to read test data
  3. run singa with -test argument (e.g., ./bin/singa-run.sh -conf JOB_CONF  
-test

* to extract features of new data,
  1. add checkpoint_path in job configuration to the checkpoint files
  2. setup input layer properly to read raw data
  3. add outputl layers (e.g., RecordOutputLayer or CSVOutputLayer) after the 
layer whose data you want to extract.
  4. run singa with -test argument (e.g., ./bin/singa-run.sh -conf JOB_CONF  
-test

A test net (i.e., kTest phase is passed to creat the net)  will be create to 
test performance and extract features.
job.conf of cifar10 example contains instructions for extracting features and 
testing performance with checkpoint files.

Rename ProtoRecordLayer and CSVRecordLayer to RecordInputLayer and 
CSVInputLayer respectively.
Add RecordOutputLayer and CSVOutpuLayer for outputing data as RecordProto and 
CSV format.


> Add functions for extracting features and test new data
> -------------------------------------------------------
>
>                 Key: SINGA-85
>                 URL: https://issues.apache.org/jira/browse/SINGA-85
>             Project: Singa
>          Issue Type: New Feature
>            Reporter: wangwei
>            Assignee: wangwei
>
> This ticket will add test functions in Worker and Driver classes.
> These functions will provided two functionalities,
> 1. test the performance of a previously trained model, whose parameters are 
> loaded from checkpoint files. 
> 2. extract the features from some middle layers of the neural net. The input 
> data does not have labels. To extract features from one layer, an output 
> layer would be added after this layer. Two output layers will be implemented 
> at first 
>     * ProtoRecordOutpuLayer which writes the feature as 
> SingleLabelImageRecord into KVFile
>     * CSVRecordOutputLayer which writes the feature as CSV line into TextFile.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to