Giter Club home page Giter Club logo

widebot-task3's Introduction

WideBot-Task3

Task 3 - Classification Using the same data in task 2, build a machine learning based classifier and show its performance on the test-set. Show precision, recall, f-score, accuracy for each class and for the whole test data. Please describe briefly the meaning of each result and metric for this specific task. Also, please write some enhancements that you may think about to achieve better results #Explain: 1)The TfidfVectorizer is a tool used for feature extraction in natural language processing tasks. tfidf_vectorizer = TfidfVectorizer() creates an instance of the TF-IDF vectorizer. 2)X is the feature matrix, obtained by applying the TF-IDF vectorizer on the combined cleaned text data from the 'story_clean' and 'title_clean' columns of the DataFrame df. y represents the target variable, which is extracted from the 'topic' column of df. 3)train_test_split is a function used to split the data into training and testing sets. X_train and y_train represent the training data and corresponding target labels, respectively. They contain 80% of the data for training the model. X_test and y_test represent the testing data and corresponding target labels, respectively. They contain 20% of the data, which will be used to evaluate the model's performance. The test_size=0.2 argument specifies that the test set will be 20% of the entire dataset.

widebot-task3's People

Contributors

ahmedhossamelhamamy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.