Gustavo Frederico
2007-11-05 15:00:24 UTC
Hi, I'm having problems with incremental updates. I have a mining structure and a mining model. The mining model uses the MS Association Rules algorithm. The mining structure has a data source, which maps to a table containing the (initial) training instances/cases.
The problem happens when I try to programmatically insert into the mining model:
"Error (Data mining): The mining structure , Blah blah blah is already trained and does not support incremental updates. Before using the INSERT INTO statement, use DELETE FROM <object>."
But I don't want to retrain everything. I don't understand why I would have to delete anything. I'm just looking for any way to incrementally train the model. I would prefer to provide constant data values programmatically for the incremental (mini-)training (with DMX's INSERT INTO) and not have to rely on inserting new cases to the data source table.
I verified the AllowsIncrementalInsert property of the mining service with this code:
foreach(MiningService ms in conn.MiningServices) {
Console.WriteLine("");
Console.WriteLine(ms.DisplayName);
Console.WriteLine(ms.AllowsIncrementalInsert);
}
and AllowsIncrementalInsert is true for Microsoft Association Rules.
So association rules are supposed to support incremental updates. So the main question is how to programmatically perform incremental updates?
Another question on the subject: does the mining model necessarily need a data source? Why can't I just have a structure and progressively train it providing constant data?
( I'm using Katmai CTP. )
Thanks,
Gustavo Frederico
The problem happens when I try to programmatically insert into the mining model:
"Error (Data mining): The mining structure , Blah blah blah is already trained and does not support incremental updates. Before using the INSERT INTO statement, use DELETE FROM <object>."
But I don't want to retrain everything. I don't understand why I would have to delete anything. I'm just looking for any way to incrementally train the model. I would prefer to provide constant data values programmatically for the incremental (mini-)training (with DMX's INSERT INTO) and not have to rely on inserting new cases to the data source table.
I verified the AllowsIncrementalInsert property of the mining service with this code:
foreach(MiningService ms in conn.MiningServices) {
Console.WriteLine("");
Console.WriteLine(ms.DisplayName);
Console.WriteLine(ms.AllowsIncrementalInsert);
}
and AllowsIncrementalInsert is true for Microsoft Association Rules.
So association rules are supposed to support incremental updates. So the main question is how to programmatically perform incremental updates?
Another question on the subject: does the mining model necessarily need a data source? Why can't I just have a structure and progressively train it providing constant data?
( I'm using Katmai CTP. )
Thanks,
Gustavo Frederico