Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Machine Learning: Naive Bayes text classifier model

  • 6Benches
  • 2019-08-21
  • 171
Machine Learning: Naive Bayes text classifier model
naive bayestext classifier
  • ok logo

Скачать Machine Learning: Naive Bayes text classifier model бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Machine Learning: Naive Bayes text classifier model или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Machine Learning: Naive Bayes text classifier model бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Machine Learning: Naive Bayes text classifier model

6Benches.in the best among all machine learning training institutes in Bangalore for freshers and experienced, offers 3 months machine learning classes in bangalore.

This video covers Naive Bayes classification algorithm
------------------------------------------------------------------
In the previous video, we have covered, text vectorization, that is converting unstructured text data to structured numerical representation which can be later fed to ML classification algorithm.

We shall try to fit the best model for the vectorized data for 20newsgroups dataset.

1)Couple of algorithms that we can use are
K nearest neighbors classifier, svm, naive bayes classifier.
Naive bayes classifier is covered in this class.

2) Three types of naive bayes algorithm,
a)Guassian: used when data is normally distributed over particular mean value
b) Multinomial: used when countvectorizer used instead of tfidf vectorizer for discrete counts/frequency of count
c)Bernoulli used when feature vectors are binary(one hot encoding)

3) from sklearn.naive_bayes import MultinomialNB, BernoulliNB, GaussianNB
3a) text vectorization
from sklearn.feature_extraction.text import TfidfVectorizer
vectorizer = TfidfVectorizer()
x = vectorizer.fit_transform(text)
from sklearn.datasets import fetch_20newsgroups
twenty_train = fetch_20newsgroups(subset = 'train', shuffle = true)
y=twenty_train.target

3b) fit naive bayes model
clf = MultinomialNB()
y_prediction = clf.fit(x[0:5000],y[0:5000]) #training on 5000 records

y_actual = clf.predict(x[5000:5100]) #predicting for 100 records

3c) calculate accuracy of naive bayes model
from sklearn.metrics import accuracy_score
accuracy_score(y_actual, y_prediction)

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]