Title: Python Archives | opencodez
Open Graph Title: Python Archives | opencodez
X Title: Python Archives | opencodez
Opengraph URL: https://www.opencodez.com/category/python
Generator: WordPress Download Manager 3.0.96
Domain: www.opencodez.com
{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","headline":"Python","description":"","url":"https:\/\/www.opencodez.com\/category\/python","hasPart":[{"@type":"BlogPosting","headline":"Python Tutorial :#2 Python Vs Java | opencodez","name":"Python Tutorial :#2 Python Vs Java | opencodez","url":"https:\/\/www.opencodez.com\/python\/python-tutorial-2-python-vs-java.htm","mainEntityOfPage":"https:\/\/www.opencodez.com\/python\/python-tutorial-2-python-vs-java.htm","dateModified":"2022-03-10T12:39:27+00:00","datePublished":"2022-03-10T12:39:27+00:00","author":{"@type":"Person","name":"Supriya","url":"https:\/\/www.opencodez.com\/author\/supriyak","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/b1e2ffbc312f7795c485a78d0ee41ec1?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Opencodez.com","logo":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2016\/09\/logo8.png"}},"image":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2022\/03\/python-vs-java.png","height":664,"width":1156},"keywords":["Python"],"commentCount":0,"comment":"","wordCount":1110},{"@type":"BlogPosting","headline":"Python Tutorial : #1 Introduction to Python | opencodez","name":"Python Tutorial : #1 Introduction to Python | opencodez","url":"https:\/\/www.opencodez.com\/python\/python-tutorial-1-introduction-to-python.htm","mainEntityOfPage":"https:\/\/www.opencodez.com\/python\/python-tutorial-1-introduction-to-python.htm","dateModified":"2022-02-20T12:09:12+00:00","datePublished":"2022-02-20T12:05:09+00:00","author":{"@type":"Person","name":"Supriya","url":"https:\/\/www.opencodez.com\/author\/supriyak","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/b1e2ffbc312f7795c485a78d0ee41ec1?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Opencodez.com","logo":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2016\/09\/logo8.png"}},"image":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2022\/02\/Python.jpg","height":225,"width":225},"keywords":["Python"],"commentCount":0,"comment":"","wordCount":862},{"@type":"BlogPosting","headline":"Web Scraping Using Beautiful Soup Word Cloud + Python - Tutorial Part 2 | opencodez","name":"Web Scraping Using Beautiful Soup Word Cloud + Python - Tutorial Part 2 | opencodez","url":"https:\/\/www.opencodez.com\/web-development\/web-scraping-using-beautiful-soup-word-cloud-part-2.htm","mainEntityOfPage":"https:\/\/www.opencodez.com\/web-development\/web-scraping-using-beautiful-soup-word-cloud-part-2.htm","dateModified":"2020-06-04T11:15:58+00:00","datePublished":"2019-06-24T01:00:55+00:00","author":{"@type":"Person","name":"Rounak","url":"https:\/\/www.opencodez.com\/author\/rounakj","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/66ae10fcf059760572f24c2bbb1fc5e4?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Opencodez.com","logo":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2016\/09\/logo8.png"}},"image":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2019\/06\/word-image-13.png","height":220,"width":424},"keywords":["How To Guide","Python","Web Development"],"commentCount":0,"comment":"","wordCount":940},{"@type":"BlogPosting","headline":"Web Scraping Using Beautiful Soup + Python - Tutorial Part 1 | opencodez","name":"Web Scraping Using Beautiful Soup + Python - Tutorial Part 1 | opencodez","url":"https:\/\/www.opencodez.com\/web-development\/web-scraping-using-beautiful-soup-part-1.htm","mainEntityOfPage":"https:\/\/www.opencodez.com\/web-development\/web-scraping-using-beautiful-soup-part-1.htm","dateModified":"2020-06-04T11:16:04+00:00","datePublished":"2019-06-20T01:01:07+00:00","author":{"@type":"Person","name":"Rounak","url":"https:\/\/www.opencodez.com\/author\/rounakj","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/66ae10fcf059760572f24c2bbb1fc5e4?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Opencodez.com","logo":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2016\/09\/logo8.png"}},"image":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2019\/06\/Web-Scraping-using-Beautiful-Soup.png","height":200,"width":200},"keywords":["How To Guide","Python","Web Development"],"commentCount":4,"comment":[{"@type":"Comment","dateCreated":"2020-04-27 22:48:58","description":"Hello, thanks for the tutorial. Why do I only have the column fields when I execute the code ? :'( \r\nI just got this : ,Article_Link,Article_Title,Article_Para,Article_Author,Article_Date","author":{"@type":"Person","name":"nicolas","url":"http:\/\/www.nowebsite.com"}},{"@type":"Comment","dateCreated":"2020-03-21 06:05:22","description":"thanks for everything, I had a few issues , I commented a few lines and I can get the idea of your tutorial. thanks again \r\n #for x in range(len(soup_title)):\r\n for x in range(12):\r\n\r\nthen i got another error with article date and commented that list and all related start working","author":{"@type":"Person","name":"humberto","url":""}},{"@type":"Comment","dateCreated":"2020-03-11 18:50:04","description":"NameError Traceback (most recent call last)\r\n in \r\n 1 url=\"https:\/\/www.opencodez.com\/\"\r\n----> 2 response=requests.get(url)\r\n\r\nNameError: name 'requests' is not defined\r\n\r\nSir can you help me in solve this error","author":{"@type":"Person","name":"papan bhowmik","url":""}},{"@type":"Comment","dateCreated":"2020-02-24 13:03:04","description":"After using rtc<\/a> scraper in my company its pretty hard to move to a more diy way of collecting data, but all these tutorials and resources online make it a not that hard of a task, thanks!","author":{"@type":"Person","name":"Scarlet","url":""}}],"wordCount":1451},{"@type":"BlogPosting","headline":"Simple Text Classification using Keras Deep Learning Python Library - Step By Step Guide | opencodez","name":"Simple Text Classification using Keras Deep Learning Python Library - Step By Step Guide | opencodez","url":"https:\/\/www.opencodez.com\/how-to-guide\/text-classification-using-keras.htm","mainEntityOfPage":"https:\/\/www.opencodez.com\/how-to-guide\/text-classification-using-keras.htm","dateModified":"2020-05-29T13:05:22+00:00","datePublished":"2018-04-30T05:07:51+00:00","author":{"@type":"Person","name":"Pavan","url":"https:\/\/www.opencodez.com\/author\/pavans","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/33289c7eb2532d4fe3c7c42c8854641e?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Opencodez.com","logo":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2016\/09\/logo8.png"}},"image":{"@type":"ImageObject","url":"https:\/\/www.opencodez.com\/wp-content\/uploads\/2018\/04\/Keras.jpg","height":348,"width":354},"keywords":["How To Guide","Python"],"commentCount":18,"comment":[{"@type":"Comment","dateCreated":"2021-12-27 16:39:38","description":"Appreciate the tutorial, but I think the results are misleading because the headers, footers, and quotes were probably not removed from the data. They contain things like subject lines and email addresses which the neural network would leverage for prediction rather than using the content. If you scrub those from the content, accuracy will drop below 70%.","author":{"@type":"Person","name":"Harj Udin","url":""}},{"@type":"Comment","dateCreated":"2019-11-15 05:24:42","description":"I believe its Multilayer Perceptron.","author":{"@type":"Person","name":"Pavan","url":""}},{"@type":"Comment","dateCreated":"2019-11-14 09:09:25","description":"Hi Pavan, what type of Neural Network have you used in this example?","author":{"@type":"Person","name":"mel","url":""}},{"@type":"Comment","dateCreated":"2019-09-24 13:08:00","description":"Hi,\r\nFirst of all, thanks for the amazing code. It was really useful. \r\nI do have a question: the text dataset I am working with could correspond to several labels, not just one. Is it possible to carry out this analysis with this code? If so, what type od change should I do?","author":{"@type":"Person","name":"Nacho","url":""}},{"@type":"Comment","dateCreated":"2019-06-26 02:42:33","description":"I am getting a shape error while predicting a single text","author":{"@type":"Person","name":"Dazzil","url":""}},{"@type":"Comment","dateCreated":"2019-05-26 13:56:59","description":"When I run the code build eras and fit I got error:\r\nValueError: Error when checking target: expected activation_3 to have shape (20,) but got array with shape (21,) , please help.","author":{"@type":"Person","name":"Li Lu","url":""}},{"@type":"Comment","dateCreated":"2019-04-11 11:58:25","description":"Hi\r\nThank you very much for this tutorial.\r\nI have a question about the saving model in Keras. I applied deep learning model and word2vec to classify some texts. However, I am not sure how I could use this again model after save it.","author":{"@type":"Person","name":"reem","url":""}},{"@type":"Comment","dateCreated":"2019-03-05 19:18:32","description":"Hello,\r\n\r\nThanks for sharing this article with us. I came with one question while looking at the code. I hope you can help me with my question.\r\nWhat will be the advantage of the LSTM if we apply tfidf on the data itself?\r\nI mean with tfidf we will miss the order of the data and so how the LSTM or any time distributed model can help us with it?","author":{"@type":"Person","name":"saria","url":""}},{"@type":"Comment","dateCreated":"2018-12-12 05:26:31","description":"Hi Kaleb,\nCan you check that in your code you are calling fit_on_texts for tokenizer and it indeed fitting on some data. May be you have empty data set on which its trying to fit.","author":{"@type":"Person","name":"Pavan","url":""}},{"@type":"Comment","dateCreated":"2018-12-05 23:52:02","description":"ValueError Traceback (most recent call last)\r\n in ()\r\n----> 1 x_train = tokenizer.texts_to_matrix(train_posts, mode='tfidf')\r\n 2 x_test = tokenizer.texts_to_matrix(test_posts, mode='tfidf')\r\n\r\n~\\Anaconda3\\lib\\site-packages\\keras_preprocessing\\text.py in texts_to_matrix(self, texts, mode)\r\n 378 \"\"\"\r\n 379 sequences = self.texts_to_sequences(texts)\r\n--> 380 return self.sequences_to_matrix(sequences, mode=mode)\r\n 381 \r\n 382 def sequences_to_matrix(self, sequences, mode='binary'):\r\n\r\n~\\Anaconda3\\lib\\site-packages\\keras_preprocessing\\text.py in sequences_to_matrix(self, sequences, mode)\r\n 405 \r\n 406 if mode == 'tfidf' and not self.document_count:\r\n--> 407 raise ValueError('Fit the Tokenizer on some data '\r\n 408 'before using tfidf mode.')\r\n 409 \r\n\r\nValueError: Fit the Tokenizer on some data before using tfidf mode.\r\n\r\nI followed the code exactly and got this error. any idea what this means?","author":{"@type":"Person","name":"Kaleb Johnson","url":""}}],"wordCount":1244}]}]}
| apple-mobile-web-app-capable | yes |
| apple-mobile-web-app-status-bar-style | black |
| og:locale | en_US |
| og:type | object |
| og:site_name | opencodez |
| twitter:card | summary_large_image |
Links:
Viewport: width=device-width, initial-scale=1, maximum-scale=1
Robots: index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large