OpenAI o3 vs Anthropic Claude 4 for Text Classification & Summarization Programming Computer Science by usmanmalik57 …`all_sentiments` list, which is returned to the calling function. ```python def classify_tweets(client, model, dataset, max_tokens): all_sentiments = [] … calculates ROUGE score for the predicted and target summaries. ```python def calculate_rouge(reference, candidate): scorer = rouge_scorer.RougeScorer(['rouge1… Re: What is the best AI and Machine Learning course? Digital Media Digital Marketing Search Engine Strategies by Eckert … interest in AI, Machine Learning, and Python development! If you're looking for top Python courses in Jaipur, you might want to… also have some excellent courses by top universities and instructors. Python is a great starting point for AI and ML, and… What is the best AI and Machine Learning course? Digital Media Digital Marketing Search Engine Strategies by Skill_4 Hay my name is Dviesh, Iam looking for python development course in Jaipur . SO lets me Disceusss best agecny and comapny for leanding python development course in jaipur . Re: What is the best AI and Machine Learning course? Digital Media Digital Marketing Search Engine Strategies by rproffitt #Before you go to some course you pay for, did you complete FREE courses such as **https://www.w3schools.com/python/ ?** Re: How do I make my code jump back to a previous line? Programming by Dani Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :) Re: How Does Flutter Handle State Management Internally? Programming Software Development by Temporal Great topic! When I studied Game Design and Art at UNIAT, we also touched on Flutter and state management, which is key for solid apps. Flutter manages state through its widget tree, with setState() rebuilding parts as needed. For bigger apps, tools like Provider, Riverpod, and BLoC help manage complexity. Provider is simple and good for … Is anyone using ChatGPT in French for programming tasks? Programming by kakasi63 Hi everyone, I've recently started exploring ChatGPT in the French language for programming help, and I was surprised at how effective it can be — even when working with frameworks like Laravel or JavaScript. For example, I asked it to generate a Laravel controller with French comments, and the output was both functional and easy to … Re: Coin Flip (Python Newbie) Programming Software Development by jassonadder Hey! Great job getting started with Python—your logic is almost there, just a couple of small … heads and tails you get. Also, if you're using Python 3 (which you probably are), remember to use parentheses with… Re: Delete unused MySQL indexes Programming Databases by Dani …, as well as related ones such as [this](https://dev.mysql.com/doc/refman/8.4/en/performance-schema-wait-tables….html) and [this](https://dev.mysql.com/doc/refman/8.4/en/performance-schema-event-tables… Re: Delete unused MySQL indexes Programming Databases by Dani I can see your rationale, but I don't necessarily agree with a separate table in the database for every month. There are much more elegant ways of handling that use case these days, especially in MySQL. You didn't specify how long ago this was. Either way, still hoping a MySQL expert can come along and answer my question here. Delete unused MySQL indexes Programming Databases by Dani How can I identify and delete unused MySQL indexes? I have a large table that has somehow accumulated way too many indexes over the years, and I'd now like to identify and delete indexes that are no longer used by the application. Re: Delete unused MySQL indexes Programming Databases by Dani … blog post](https://www.percona.com/blog/basic-housekeeping-for-mysql-indexes/) by the one and only Percona, that says that… Re: Delete unused MySQL indexes Programming Databases by Reverend Jim … for removing only unused indexes, I don't know how MySql would be able to determine if an index is used… Re: Delete unused MySQL indexes Programming Databases by Dani As some general background, that's the syntax to delete an index, of course, but MySQL knows if an index is used because, well, it's the one that uses it, and it tracks that stuff internally. Now on to my question ... ;) Re: Delete unused MySQL indexes Programming Databases by Reverend Jim See [performance-schema-consumer-filtering](https://dev.mysql.com/doc/refman/8.4/en/performance-schema-consumer-filtering.html) Re: Delete unused MySQL indexes Programming Databases by toneewa … of the performance schemas were off. event_waits_current was off, so MySQL didn't store the data (e.g., collect wait event… Re: Coin Flip (Python Newbie) Programming Software Development by Dani > Presumably bumping every "coinflip" post to spam their URL Nothing wrong with that!! I'll take a trillion helpful posts if all someone wants in exchange is a free signature link back to their website (that only shows up for logged in members, so no SEO incentive). Re: Coin Flip (Python Newbie) Programming Software Development by woooee while timesflipped < 100: timesflipped += 1 Use a for loop instead. if coin_flips == 0: And no need to add the == 0. Just *if coin_flips* (i.e. not zero) is enough Re: Coin Flip (Python Newbie) Programming Software Development by Reverend Jim When you want to do a loop a given number of times (e.g. 100) but the loop counter is not used you can do for _ in range(100): # rest of code here Re: Delete unused MySQL indexes Programming Databases by Reverend Jim >Is that list incomplete or straight-up wrong? I have no way of knowing. If I add a bunch of numbers and get an answer, is it right or wrong? Again, as a guess, if you have enabled the correct flags and let the system run through typical processing, the returned list should be, according to the docs, a list of unused indexes. Worst case … Re: Delete unused MySQL indexes Programming Databases by Dani Creating and removing database indexes is very complex and is not a matter of let's throw spaghetti at the wall and see what sticks. When working with big data, loads and loads of thought goes into each and every index. Nearly all indexes can work, but not as well as others might, and having too many indexes on a table can slow down inserts and … Re: Delete unused MySQL indexes Programming Databases by Reverend Jim I faced a similar problem when I created and maintained the corporate side databases to mirror the EMS (AGC/SCADA) real time data. One month of data was roughly 300 meg and it was critical that this be available 24x7. Sometimes databases break and it is important to recover them as quickly as possible. Knowing that around 90% of the queries were on… Re: Delete unused MySQL indexes Programming Databases by Reverend Jim >You didn't specify how long ago this was. 1998-1999 Re: Delete unused MySQL indexes Programming Databases by Dani > Your data wouldn't be accurate and incomplete, if either one of the performance schemas were off. Do you mean `!(accurate && incomplete)` or do you mean `!accurate && incomplete`? But I gotcha. Thank you for the explanation. Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 … script imports the required libraries and modules into our Python application. ```python import pandas as pd import matplotlib.pyplot as plt… converts them into binary numbers using the `parse_outputs_to_dataframe()` function below. ```python def parse_outputs_to_dataframe(outputs): subjects = ["Computer Science", "… Integrating OpenAI Web Search API in LangGraph Programming Computer Science by usmanmalik57 … The script below imports the required libraries into your Python application. ```python from typing_extensions import TypedDict from langchain_openai import ChatOpenAI from IPython…()` function to bind the list of tools to the LLM. ```python OPENAI_API_KEY = userdata.get('OPENAI_API_KEY') search_tool = {"type": "… Re: Key Tools and Tips for Efficient Web Development Programming Web Development by JackRyan248 … development. > > On the back end, Node.js and Django are solid options for building robust applications. Don't forget… and project efficiency! Great tips! React, Vue, Node.js, and Django are all solid choices. GitHub is essential for version control… Re: Key Tools and Tips for Efficient Web Development Programming Web Development by Himanshu011 Frontend development: * React * Vue.js Backend development: * Node.js * Django Hi everyone, I'm Hichem_MG Community Center Say Hello! by Hichem_MG Hi everyone, I'm Hichem. A web developer, Python enthusiast and problem solver. I'm happy to be a member of the DaniWeb community. Re: Hi everyone, I'm Hichem_MG Community Center Say Hello! by Reverend Jim Welcome to Daniweb. What type of Python projects have you done?