最近一段时间学习了一篇SCI的文章——
Human-level concept learning through probabilistic program induction
这篇文章在学术界反响很大。据我了解,该文的算法能与deep cnn效果相匹敌。
下面贴出自己对该文代码的验证过程:
先记一下对代码进行的操作要求:
Using the code
Setting your path
First, you must add all of the sub-directories to your Matlab path. While in the main BPL directory type this command:
addpath(genpath(pwd));
Pre-processing stroke data
This only needs to be run once, and it can take up to 5 minutes to complete. From the ‘data’ directory, run:
omniglot_preprocess;
This will create the ‘data_background_processed.mat’ and the ‘data_evaluation_processed.mat’ files for accessing the Omniglot dataset with pre-processed stroke data.
Parsing demo
To run the model fitting demo, type
demo_fit;
One-shot classification
First, download the pre-comput