マイニング構造の処理中に問題が発生しました...
これがマイニング構造です
CREATE MINING
STRUCTURE [QUESTION1] (
[ownerReviewID] LONG KEY,
[makeName] TEXT DISCRETE,
[modelName] TEXT DISCRETE,
[price] LONG CONTINUOUS,
[priceDisc] LONG DISCRETIZED(AUTOMATIC),
[seriesYear] LONG CONTINUOUS,
[seriesYearDisc] LONG DISCRETIZED(AUTOMATIC),
[ownerName] TEXT DISCRETE,
[ownedSinceNew] BOOLEAN DISCRETE,
[ownedPeriod] LONG DISCRETE,
[feature_ratings] TABLE (
[transID] LONG KEY,
[ownerReviewID]
LONG DISCRETE,
[feature] TEXT DISCRETE,
[rating] LONG CONTINUOUS,
[ratingDisc] LONG DISCRETIZED(AUTOMATIC)
)
) WITH HOLDOUT
(30 PERCENT OR 10000 CASES);
Naive Bayes を使用してマイニング モデルを作成しました。
ALTER MINING STRUCTURE [QUESTION1]
ADD MINING MODEL [PredictReBuy-NBayes]
(
[ownerReviewID],
[makeName],
[modelName],
[priceDisc] AS [price],
[seriesYearDisc] AS
[seriesYear],
[ownerName],
[ownedSinceNew],
feature_ratings(
transID,
feature,
[ratingDisc] AS
[rating] PREDICT )
)
USING Microsoft_Naive_Bayes
これまでのところ、上記の 2 つのコードは正常に動作し、すべて実行されています。
処理コードを実行しようとすると、下部に表示されているエラーが表示されます。これは私の処理コードです:
INSERT INTO MINING STRUCTURE [QUESTION1]
(
[ownerReviewID],[makeName],[modelName],[price],[seriesYear],[ownerName],[ownedSinceNew],[ownedPeriod], feature_ratings(SKIP, [transID])
)
SHAPE {
OPENQUERY([Car Rating],'SELECT ownerReviewID, makeName, modelName, price, seriesYear, ownerName, ownedSinceNew, ownedPeriod FROM dbo.owner_reviews ORDER BY ownerReviewID')}
APPEND
(
{OPENQUERY([Car Rating],'SELECT transID, ownerReviewID, feature, rating FROM
dbo.feature_ratings ORDER BY transID')
}
RELATE ownerReviewID to ownerReviewID
) AS [feature_ratings]
現在、このエラーを受け取りましたが、解決方法がわかりません...何かアイデアはありますか? ありがとう!!
Executing the query ...Error (Data mining): The count of the specified columns does not match the count of
the mining model columns or the input rowset columns.Execution complete