
DaniWeb Forums » Computer Science
39 FOLLOWERS
This Computer Science forum section is the place for Q&A-style talks related to software design and schema, mathematical theory, and algorithms. Share your projects and get help improving them, discuss errors in your java program, and do so much more here.
DaniWeb Forums » Computer Science
1w ago
Construct an algorithm that has input an integer n 1, numbers x0, x1,...,xn, and a number x and that produces as output the product (x-xo)(x-x1)(x - xn ..read more
DaniWeb Forums » Computer Science
1M ago
A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. Youre to write an application to assign seats on each flight of the airlines only plane (the capacity of the plane is 10 seats of the same class). The flight ticket costs 500 $. Use a one-dimensional array of type Boolean to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. The user can choose his seat number (from 1 to 10) if it is available. As each seat is assigned, set the ..read more
DaniWeb Forums » Computer Science
6M ago
A/B testing is a method of comparing two versions of a web page or app to determine which one performs better. It is a powerful tool for optimizing websites and apps, as it allows businesses to make data-driven decisions about the design and functionality of their online platforms. With A/B testing, businesses can test different versions of a page or app and see which leads to more conversions, better user engagement, and, ultimately, higher profits.
A/B Testing Tools
There are many A/B testing tools on the market, and choosing the right one can be a daunting task. In this article, we will pro ..read more
DaniWeb Forums » Computer Science
6M ago
Lexicographic algorithm
I'm trying to make this algorithm work, but it keeps telling me that my declaration array is not correct because it needs to have a constant value. Array declaration can be found in the main
#include<iostream>
#include<array>
using namespace std;
void nextPermutation(char* v, int n) { //function declaration for next permutation
int i, j; //variable declaration
for (i = n - 1; i > 0 && v[i - 1] >= v[i]; i--); // we go to the index till v[i]>v[i-1]
if (i > 0) { //if i is greater than 0 than we have ..read more
DaniWeb Forums » Computer Science
7M ago
will you kindly tell me how to make Instagram bots, Instagram bot followers? What is the step-by-step approach of it with programming? I want to make it by myself ..read more
DaniWeb Forums » Computer Science
7M ago
Introduction
This tutorial explains how to perform multiple-label text classification using the Hugging Face transformers library. Hugging Face library implements advanced transformer architectures, proven to be state-of-the-art for various natural language processing tasks, including text classification.
Hugging Face library provides trainable transformer models in three flavors:
Via the Trainer Class API
Via PyTorch Models
Via TensorFlow Models
The HuggingFace documentation for Trainer Class API is very clear and easy to use. However, I wanted to train my text classification model in Tenso ..read more
DaniWeb Forums » Computer Science
7M ago
Introduction
In this tutorial, you will see how to convert the text in CSV file columns to other languages using the DeepL API in the Python programing language.
DeepL is one of the most popular and accurate text translation platforms. DeepL, as the name suggests, incorporates advanced deep learning algorithms for training text translation models.
In addition to raw text strings, DeepL supports translating documents in PDF, MS Word, and PowerPoint formats. However, I wanted to translate text in CSV file columns, which DeepL does not support.
In this tutorial, I will explain how I achieved tran ..read more
DaniWeb Forums » Computer Science
7M ago
Introduction
I was working on a problem where I had to scrape tweets related to the T20 Cricket World Cup 2022, which is currently taking place in Australia.
I wanted tweets containing location names (cities) and the keyword T20. In the response, I want the user names of tweet authors, tweet texts, creation time, and the location keyword used to search the tweet. Finally, I wanted to create a Python Pandas Dataframe that contains these values in columns.
In this article, I will explain how you can return scrape tweets containing location information and how to store these tweets in a Pandas Da ..read more
DaniWeb
Computer Science Topics
7M ago
Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined by summing up the values of the letters of the name. For example, the name Zelle would have the value 26 + 5 + 12 + 12 + 5 = 60. Write a function called get_numeric_value that takes a sequence of characters (a string) as a parameter. It should return the numeric value of that string. You can use to_numerical in your solution.
First, my code for to_numerical (a function I had to make to convert letters to numbers [notably not the ASCII codes; had to s ..read more