| |
| | [No title] (Site not responding. Last check: 2007-10-22) |
 | | The predictions are then always forced, to the same format: the largest predicted output set to 1, the rest to 0. |
 | | */ { dyv *usin = mk_dyv_from_farr(input,ez_num_inputs(ds)); dyv *out = mk_dyv(ez_num_outputs(ds)); ez_predict_dyv(opts,ds,fc,usin,out); copy_dyv_to_farr(out,r_output); free_dyv(usin); free_dyv(out); } double ez_predict1(options *opts, dset *ds, facode *fc, double *input) /* Assumptions: opts and ds have been initialized, fc is valid and null- terminated and has the same number of feature fields as there are inputs in ds. |
 | | */ { dyv *usin = mk_dyv_from_farr(input,ez_num_inputs(ds)); ivec *iv = ez_nearest_neighbors_from_dyv(opts,ds,fc,k,usin); int result = ivec_size(iv); copy_ivec_to_iarr(iv,r_neighs); free_dyv(usin); free_ivec(iv); return(result); } double ez_normal_dsqd(dset *ds, facode *fc, double *input1, double *input2) /* Assumptions: ds legal and initialized. |
| www.cs.cmu.edu /afs/cs.cmu.edu/project/learn-14/lib/uem/.g/g2t/ezgm.c (3858 words) |
|