I made a simple Bayesian classification
X = [[1,0,0], [1,1,0]] ### there are more data of course Y = [1,0] classifier = BernoulliNB() classifier.fit(X, Y)
Now I have some โinsider tipsโ that the first element in each X is more important than the others.
Can I include this knowledge before teaching the model, please?
If sklearn does not allow this, is there any other classifier or other library that allows us to include a preliminary preliminary training model?
I do not know the answer to question 2, but I can answer question 1.
The comment "multiply the first element for each observation by different values"uses the wrong approach.
"multiply the first element for each observation by different values"
BernoulliNB Binomial, , , - ().
, , , . , . 70% 30% : 100 , 70 30 , X.
, . :
p(class = k | data) ~ p(class = k) * p(data | class = k)
: () , k, , , k (), , , k ( ).
, , , p(class = k) .
p(class = k)
, - , , , , p(class = k) . . , . , . , , (.. , ), , , .
Source: https://habr.com/ru/post/1673102/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1673097/convert-a-string-of-integers-to-byte-array-in-ruby&usg=ALkJrhgcoTAXEGGHxCyLXce-aasD14wjPQImmutable.Map.deleteAll () is not a function - javascriptIs it possible to search for a commit hash in gitk? - gitXamarin with Visual Studio: blank screen when debugging - androidReading regular expressions and strings from app.config - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1673103/changes-to-delegate-entries-under-servive-task-for-bpmn-properties-panel-not-getting-updated-on-ui&usg=ALkJrhiA-1AhTJbro0cHOgn3qJik9Z-6tQWhy can't JDK1.8.0u121 find kerberos types default_tkt_enctypes? (KrbException: etypes is not supported by default for default_tkt_enctypes) - javaIs there a way to define a dynamic query in the Kibana control panel? - elasticsearchHow to create a relationship between observables? - f #Elasticsearch dynamic query scripts inside Kibana visualization? - elasticsearchAll Articles