Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
calculate
- Page 1
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
16 Hours Ago
by usmanmalik57
… script took 54.5 seconds to run. Finally, you can
calculate
model accuracy by comparing the values in the `airline_sentiment` columns… can compare response predicitons with the actual sentiment labels to
calculate
the model's accuracy. ``` %%time all_sentiments = [] tweets_list = dataset["text…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
…) Finally, we can compare the actual and predicted reviews to
calculate
model accuracy on the test set. ``` accuracy = accuracy_score(targets, predictions…
Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…frames to this method. ``` def crop_image_area(img, facial_area, margin): #
Calculate
the new coordinates, ensuring they do not exceed the image… in the script below: ``` def pad_image_to_size(img, target_height, target_width): #
Calculate
the padding sizes top_bottom_padding = (target_height - img.shape[0]) // 2 …
Multivariate Stock Price Prediction with Transformer Encoder in TensorFlow
Programming
Computer Science
2 Months Ago
by usmanmalik57
… test set predictions = model.predict(X_test) #
Calculate
Mean Squared Error (MSE) mse = mean_squared_error(y_test, predictions) #
Calculate
Mean Absolute Error (MAE) mae = mean_absolute_error…
VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
… down AY = (Int(Player.PosY / ObjectSize) * ObjectSize) + ObjectSize '
Calculate
grid position AX = Player.PosX + (AY - Player.PosY) / Tan(Player…Facing right AX = (Int(Player.PosX / ObjectSize) * ObjectSize) + ObjectSize '
Calculate
grid position AY = Player.PosY + (Player.PosX - AX) * Tan(Player…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
…down AY = (Int(Player.PosY / ObjectSize) * ObjectSize) + ObjectSize '
Calculate
grid position AX = Player.PosX + (AY - Player.PosY) / Tan(… right AX = (Int(Player.PosX / ObjectSize) * ObjectSize) + ObjectSize '
Calculate
grid position AY = Player.PosY + (Player.PosX - AX) * -Tan(…
Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
….CAP_PROP_FPS) fps = math.ceil(fps) path = os.path.basename(video_path) #
Calculate
interval for capturing frames interval = max(1, float(total_frames) / float…
Re: Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
1 Month Ago
by EdwardMatthew
It's fantastic, I have read this article and it is super amazing. thankyou for the knowledge.
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by rproffitt
For VertDist I would set a break on line 104 so I could examine the values in line 103. Also, could be a localization issue that the comma is used for the decimal point and the integer of the results might be 35 and 4548.
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
finally i found the problem is on these line: HorizDist = Sqr(((HorizX - Player.PosX) * (HorizX - Player.PosX)) + ((HorizY - Player.PosY) * (HorizY - Player.PosY))) 'works fine VertDist = Sqr(((VertX - Player.PosX)) * ((VertX - Player.PosX))) + (((VertY - Player.PosY)) * ((VertY - Player.PosY)))'calculation incorrect like …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
not so easy :( WallDistance = WallDistance * Cos(Abs(RayRadians - Player.Radians)) 'avoiding the Fish Effect RayHeight = (ObjectSize / WallDistance) * 200 '320 is the width screen If (RayHeight > 200) Then RayHeight = 200 A.ForeColor vbBlue A.DrawLine 475 + 50 + RayCounts, 200 / 2 - …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
i fix 1 error: ElseIf (KeyCode = vbKeyUp) Then If (LevelMap0(Fix((Player.PosY + Player.MoveY * Speed) / ObjectSize), Fix((Player.PosX + Player.MoveX * Speed) / ObjectSize)) <> vbBlue) Then 'and: ElseIf (KeyCode = vbKeyDown) Then If (LevelMap0(Fix((Player.PosY - Player.MoveY * Speed) / …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Month Ago
by cambalinho
after several tests i fix it: Do While RayCounts < RayCount If (RayRadians > (2 * PI)) Then RayRadians = 0.001 i have more to update: 1 - win more performance\FPS; 2 - and trying avoid the 'on error resume next'(it's about the array dimensions): Private Sub DrawRays2() Dim AY As Double…
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by Reverend Jim
Since the underlying tool is ffmpeg, why bother with all the code and overhead? You can just use ffmpeg directly with the -r option. Aside from this I enjoyed the article (and the others you have posted).
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
Yes, that's an option, but while you are developing Python applications where you have to process multiple videos, I don't think ffmpeg is scalable enough. Thanks for your feedback r though :)
calculate the date difference between two dates exclude the saturday and sunday
Programming
Software Development
16 Years Ago
by palcham
calculate
the date difference between two dates exclude the saturday and sunday(Please dont
calculate
saturday and sunday between two dates)
Calculate 3 Scores
Programming
Software Development
14 Years Ago
by clarence_cool03
{-='
Calculate
3 Scores using Dev-C LaNguaGe'=-}
Calculate the average of ten numbers using arrays
Programming
Software Development
14 Years Ago
by clarence_cool03
{-='
Calculate
the average of ten numbers using arrays'=-}
calculate value of PI from the infinite series
Programming
Software Development
12 Years Ago
by programing
calculate
value of PI from the infinite series π = 4-4/3+…
Re: calculate the grades for a student using if..else statements.
Programming
Software Development
6 Years Ago
by Altaf_2
Calculate
a grade of student Total marks=100 Mark=int(Input(&…
Re: How to calculate sum of total time in mysql.
Programming
Databases
11 Years Ago
by pritaeas
Calculate
before and after the comma separately. What's behind the comma needs to be handled differently. The result of the SUM is just the usual decimal addition. See [this page](http://dev.mysql.com/doc/refman/5.1/en/time.html), look for elapsed.
Re: Java calculate ip address
Programming
Software Development
11 Years Ago
by stultuske
"
calculate
" an ip address? why would you want to
calculate
one? you mean you're trying something like [this](http://www.javaprogrammingforums.com/java-networking-tutorials/265-how-get-your-computer-name-ip-address.html)?
area and volume occupied by a cylinder
Programming
Software Development
9 Years Ago
by supermastereu
Calculate
the total area and volume occupied by a cylinder. Correct …; int main() { float At, V, r, h; printf("\n ===========
Calculate
the total area and volume occupied by a cylinder============\n…
pi.cpp
Programming
Software Development
15 Years Ago
by 72246
calculate
the value of pi from in finite series pi=4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11).... print a table that shows the approximate value of pi 1,000 terms series
Distance Formula
Programming
Software Development
15 Years Ago
by vckicks
Calculate
the distance between two points.
Slope Formula
Programming
Software Development
15 Years Ago
by vckicks
Calculate
the slope between two points.
!!!!!! Help me !!!!! Please.
Programming
Software Development
14 Years Ago
by nupoychan
Calculate
the number of years worked to date. (Fraction of year, …
BMI Program.. I cant see where im going wrong
Programming
Software Development
13 Years Ago
by ITgirl2010
'''
Calculate
the BMI of a person given their height and weight ''' …
im stuck on getting the average im just new at this
Programming
Software Development
11 Years Ago
by juljan30
calculate
and display the average of all even values . #include<…
Re: im stuck on getting the average im just new at this
Programming
Software Development
11 Years Ago
by juljan30
calculate
and display the average of all even values . #include<…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
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