Displaying 2 results from an estimated 2 matches for "original_instance".
2006 May 19
5
How to determine if an object has just been created
Is there a built-in way to determine if a model object has just been
created (ie. this object was the one that was originally persisted)? I
can''t see it anywhere in the AR code, but thought I''d check. I want
something like:
p = Person.create
p.original_instance? # true
Is this built-in or should I just patch AR?
-Jonathan.
2013 Mar 31
1
Creating new instances from original ones
...er of each class is not
enough to obtain a good accuracy using some classifiers( svm, rna, knn) I
need to "oversampling" the number of instances of each class.
I have heard that there is a method to do this. It consists in generating
these new instances as follows:
new_instance <---- original_instance + u(epsilon)
U(epsilon) is a uniform number in the range [-epsilon,epsilon] and this
number is applied to each feature of the dataset to obtain a new instance
without modified the original class.
Anybody has used this method to "oversampling" his data? Anybody has more
information abou...