I am trying to use a library for multiple instance learning made by someone else.
This is the main code which explains the input.
function [Concepts,maxConcept,Iterations]=maxDD(PBags,NBags,Dim,Scales,SPoints,Epochs,Tol)
PBags - An Mx1 cell array, the jth instance of ith positive bag is stored in PBags{i}(j,:) (1<=i<=M)
NBags - An Nx1 cell array, the jth instance of ith negative bag is stored in Nbags{i}(j,:) (1<=i<=N)
I am new to the concept of cell array. My data is as follows. A text file containing say 400 instances.
First 200 are called positive intances..next 200 called negative.These need to be sorted out into 42 positive bags, then 40 negative bag.(each instances belong to a bag..each bag containig more than 1 instance) (Think of it as red and blue mailboxes.Each mailbox in turn will contain x number of instances (varying for each mailbox) The number of instances in each is given in a (42+40=82) dimensional vector.
example 4 5 6 ...2 meaning 4 intances go to first mailbox, 5 to second and and so on.
How do i give the input in correct cell array form.Since both the data and the algorithm are from the same library, i think somehow that the data i already in a form easily convertable into cell arrays!
a={PBags}. You probably want to reword your question.Object [] = new Object[10];, except for that it is indexed using{}instead of[]and that it is easier to extend it. So an array where you can place anything in other words.