Learn practical skills, build real-world projects, and advance your career
Created 5 years ago
Building machine learning model for Human_DNA_Classifier for the given DNA sequence
Load essential Library
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix,classification_report,accuracy_score
import seaborn as sns
Load the data set and analyze the details
df = pd.read_table("human_data.txt")
/Users/vigneshkarthick/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:1: FutureWarning: read_table is deprecated, use read_csv instead, passing sep='\t'.
"""Entry point for launching an IPython kernel.