Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
prime number
- Page 1
Re: PHP Fatal error: Uncaught Error: Unsupported operand types error
Programming
Web Development
2 Weeks Ago
by Dani
…["cart_item"][$k]["quantity"]` is not a
number
, does not exist, is null, etc. Also, type cast …($_POST['quantity'])` to force it to be a floating point
number
, since it's being retrieved from $_POST which, theoretically, …quantity"]); We can then guarantee that at least the
number
being passed in is a float. You now need …
PHP Fatal error: Uncaught Error: Unsupported operand types error
Programming
Web Development
2 Weeks Ago
by ianhaneybs
… } echo '<script>alert("Invoice generated successfully. Invoice
number
is "+"'.$invoiceno.'")</script>'; unset($_SESSION…
Re: Python - MySQL - Too many connections?
Programming
Databases
1 Week Ago
by Dani
… at the beginning of the PHP script * Execute *n*
number
of MySQL queries (typically 0-3) throughout the PHP script… of the PHP script * Start a transaction * Execute *n*
number
of MySQL queries (typically 3-5) throughout the PHP script…execute for an end-user. HTTP latency then brings that
number
closer to 200 ms (of course, depending on where …
Re: Time for some humour before Nov 5
Community Center
Geeks' Lounge
2 Weeks Ago
by Reverend Jim
An infinite
number
of mathematicians walk into a bar. The first orders a beer, the second orders half a beer, the third orders a quarter of a beer and so on. After the 7th order the bartender pours 2 beers and says, "you fellas out to know your limits."
Re: Java - Random Number Generation
Programming
Software Development
1 Month Ago
by WendyDolan
Yes, use Java's Random class to generate random numbers like nextInt() and nextFloat(). Example: Random random = new Random(); int randomInt = random.nextInt(); float randomFloat = random.nextFloat(); Hope this helps!
Fine-tuning OpenAI Vision Models for Visual Question-Answering
Programming
Computer Science
1 Month Ago
by usmanmalik57
…+= 1 continue # Print the status indicating the record
number
processed and the response print(f"Record #{record_number} …processed. Response: {predicted_answer}") # Increment the record
number
for the next iteration record_number += 1 # Calculate accuracy using …
Text Classification and Summarization with Qwen 2.5 Model From Hugging Face
Programming
Computer Science
1 Month Ago
by usmanmalik57
…Give me a Python recursive function calculate factorial of a
number
" messages = [ {"role": &… a Python recursive function calculate factorial of a
number
<|im_end|> <|im_start|>assistant…a recursive method for printing the factorial of a
number
. ```python model_inputs = tokenizer([text], return_tensors="…
How to Fine-tune the OpenAI GPT-4o Model - The Wait is Finally Over
Programming
Computer Science
2 Months Ago
by usmanmalik57
…then divides the dataset by sentiment category and returns the
number
of `records` beginning at the specified index. This… approach ensures we have an equal
number
of records for each sentiment category. We will … for each category) for testing. You can use more
number
of records for fine-tuning if you want. ``` def…
Extracting Structured Outputs from LLMs in LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
…is helpful if you have a small
number
of documents since merging multiple documents can … = f"================================================================\n" article_info += f"Article
Number
: {i+1}, {df.loc[i, 'author']}, {df… this approach if I have a large
number
of documents. The following script iterates through…
Image Generation with State of the Art Flux Diffusion Models
Programming
Computer Science
1 Month Ago
by usmanmalik57
…s height and width, the guidance scale, the
number
of interference steps, and the maximum sequence length for… between 0 and 20. The `num_inference_steps` determines the
number
of denoising steps, affecting the quality and generation time.… A higher
number
of inference steps results in a higher-quality image…
ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by Johannes C.
… ago, it was amusing that ChatGPT couldn't count the
number
of [Rs in the word ‘strawberry’](https://www.reddit.com…-droves), o1 delivers. Not only does it accurately count the
number
of Rs in ‘strawberry,’ users can also see the “thought…
Qwen vs Llama - Who is winning the Open Source LLM Race
Programming
Computer Science
1 Month Ago
by usmanmalik57
…/attachments/4/89b95740c770b342d0c45baa4168c947.png) Next, we will check the average
number
of characters in all summaries. We will use this…
number
as output tokens in the LLM model response. ```python dataset['…
Text and Image to Video Generation using Diffusion Models in Hugging Face
Programming
Computer Science
2 Months Ago
by usmanmalik57
… the image, you must pass the image object and the
number
of total frames to generate to the `image_video_pipe` pipeline you…
Rename Tabs In A Tab Control WinForms
Programming
Software Development
1 Month Ago
by CrystalKanger
…. When they hit the "save" button, the tab
number
they selected from the combo box will change from "…
Re: microsoft & gmail continually forcing password change, what is workaround?
Programming
Software Development
2 Months Ago
by Salem
… flag. Do you have anything like 2-factor authentication, phone
number
, recovery email address etc to help secure your account? Are…
Re: Top strategies for improving website performance and load times
Programming
Web Development
2 Months Ago
by dineshkumar01
… quality to reduce loading times. Minimize HTTP Requests: Reduce the
number
of elements on your pages, like scripts and images, to…
Re: Telephone directory program in python
Programming
Software Development
1 Month Ago
by Mansour_4
To save the name and phone use i/O FILE EX, Fi= open ("filename.text")
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
2 Months Ago
by Duane_4
This is an interesting and useful post. I believe there is a typo in the 7th code block relating to train/val/test split. The second line should read: val_df, test_df = train_test_split(temp_df, test_size=0.5, random_state=42) The whole point of temp_df in the first line was to separate out 30% for val/test; the second line splits that to …
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
2 Months Ago
by meyerrluanna
The post gives a really clear, step-by-step guide on how to fine-tune the OpenAI Whisper model for audio classification. Its great how it covers everything from preparing the dataset to using tools for feature extraction and model training .This is definitely worth checking out, The explanations are practical, and the code snippets make it easy to …
Re: Image Generation with State of the Art Flux Diffusion Models
Programming
Computer Science
1 Month Ago
by autowrecking
Impressive Thanks for sharing.
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by meyerrluanna
Hey, I really enjoyed reading your post . It’s kind of mind-blowing when you think about how far AI has come. But I also think it’s worth considering what we really mean by "smarter." AI, like ChatGPT, is amazing at processing information and spitting out answers quickly, but there’s still a lot that makes human intelligence unique like …
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by jkon
I really can't understand the claim that it "smarter than 90% of population". I don't have access to o1 but from what I have seen sometimes it counts correctly the r's in strawberries , is this that our benchmark ? and if so , - why ? and do we know for sure that 90% of population can't count R's ? Is there a study about it ? . Don't …
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by DEEPAK_84
So sad.
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by Pelorus_1
ChatGPT has demonstrated remarkable advancements in natural language processing, enabling it to understand and generate human-like responses with high accuracy. This sophistication allows it to outperform the average person in various knowledge-based tasks, making it seem smarter than 90% of the population. However, it's important to note that …
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by sgtamilan
It’s impressive to see how advanced AI has become! ChatGPT being smarter than 90% of the population highlights the rapid progress in technology and how it’s reshaping our interactions with information and each other. It’s a testament to the incredible work being done in the field of artificial intelligence. Looking forward to seeing how these …
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by jkon
When I took my first IQ test as a teenager, and I didn’t know anything about the assumptions you should make for those questions, I had a strong reaction: "This question is not clear, so how could the answer be? Are they kidding me? Is this an IQ test?" Afterwards, I learned what those assumptions were, and my score went up. So yes, you …
Re: ChatGPT is Now Smarter Than 90% of the Population
Community Center
1 Month Ago
by trueframe
It’s amazing to see just how advanced AI will become in the coming years!
Re: Qwen vs Llama - Who is winning the Open Source LLM Race
Programming
Computer Science
1 Month Ago
by Brandon_38
The competition between Qwen and Llama in the open-source LLM race is fascinating to follow! Both models bring unique strengths to the table, making it exciting to see which will emerge as the leader. I appreciate the ongoing innovation in this space, as it pushes the boundaries of what's possible with language models. It will be interesting to …
Re: Issue with FCM in Android Studio
Programming
Mobile Development
1 Month Ago
by Tayler_2
It sounds like your project’s dependency management might have run into some version conflicts or outdated references. Have you tried clearing the cache or updating your build tools to the latest version? Sometimes resetting the environment or specifying exact versions for dependencies can help resolve such issues.
Re: Issue with FCM in Android Studio
Programming
Mobile Development
1 Month Ago
by WendyDolan
Hello: You seem to be addressing a difficult problem. Sometimes resolution of dependency might be challenging. Verify that your Gradle files are current and look for any versions' discrepancies. Also sometimes deleting the cache and restarting Android Studio works. Keep cheerful.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC