Questions tagged [fitness]

A fitness functions judges how good a solution of a problem is.

A fitness function is used to determine how well a solution fits a given problem. It is used in s.

104 questions
0
votes
1 answer

Particle Swarm Optimisation: dealing with uncertainty / imprecision in candidate solution fitness

I wish to optimise the fit of a complex, parameterised model to noisy data using Particle Swarm Optimisation (PSO). The data is time-series chemical concentration values. Within my optimisation objective function I measure fitness using the Bray…
Will Furnass
  • 108
  • 1
  • 6
0
votes
1 answer

How to Resolve Syntax Error of the sqlite3.connect.cursor.execute() Function

I'm creating an exercise database Python script using the SQLite3 library & following a very helpful YouTube guide, & I'm running into issues near the very beginning of just creating the database in the first place. Please take a look at my code…
0
votes
1 answer

How to import failed sync from G Shock to Strava?

Some of the runs recorded in G-Shock GBD-H1000 synced to Move app but failed to get into Strava. How do I sync the failed runs?
0
votes
0 answers

Can Hamming loss be used as a fitness function in PSO for classification models?

I am using PSO to optimize parameters for a classification model. Since accuracy score and f1 score are not working well with the code, I am thinking of using hamming loss as the fitness function. Can this work?
Akshita
  • 21
  • 6
0
votes
1 answer

Assigned values have not the same length - Python

I am working on Genetic Algorithm, particularly finding the fitness of population. But it has the #TypeError: object of type 'int' has no len() Python suggests me a reference code: /usr/local/lib/python3.9/dist-packages/deap/base.py in…
Jess
  • 9
  • 2
0
votes
0 answers

Flutter Auto Countdown Implementation for Fitness Workout

I'm working on a Flutter Workout App and I'm having some issues implementing the Workout Sequence and Timer. I was able to implement the auto countdown and workout sequence however, the countdown skips numbers between and the workout sequence runs…
Sharada Sharma
  • 129
  • 1
  • 11
0
votes
0 answers

f(x)= number of ones in x . find the highest and average fitness for genetic algorithm , Alternate option to Map and reduce in python

i am trying to write a code which takes input as below and then find the highest and average where f(x)= number of ones in x . ['00111110011001010011', '01111101001101110010', '01100110111110000000', '01101101100111001001'] def fitness(genome): …
Shariq
  • 1
  • 1
0
votes
0 answers

How to change Apple Watch priority to be over Fitness?

When we start a exercise in Apple Watch and open another app, when we put the wrist down the watch will automatically switch to the fitness app. It has some exceptions, for example, if you open the stopwatch and start a chronograph, when getting the…
Jonathan Silva
  • 141
  • 1
  • 12
0
votes
0 answers

Where to find free API to build stretching exercise application?

I'm going to build app with some easy stretching exercises which you can do at your home in your spare time. However I'm unable to find any free API dedicated just for stretching. I tried to find some nice API related only to stretching, but it…
Rafal
  • 91
  • 2
  • 7
0
votes
1 answer

Step count and calories burn mismatched with HealthKit, Apple Watch

we are trying to retrieve the daily step count and calories burn data from Health using HealthKit. The methods been used were: stepCount = HKSampleType.quantityType(forIdentifier: HKQuantityTypeIdentifier.stepCount) caloriesBurn =…
RUDRA S M
  • 19
  • 3
0
votes
1 answer

how long Google Fitness keeps data?

I made an appliction using Google Fitness and wanna know how long Google Fitness keeps data. (ex. User's step counts, heart rate, activity ...) thanks. I checked the privacy policy of Google but couldn't figure out.
dopi
  • 1
0
votes
0 answers

make random forest with fitness function and genetic algorithm

I would like to set up a random forest for my fitness function using a genetic algorithm, like they do with weights in neural networks... But it's quite difficult for me to figure out what exactly I need to change in the rf model set.seed(123) X <-…
mr.T
  • 181
  • 2
  • 13
0
votes
0 answers

Is it possible to detect user's activity/motion on a web app?

I am making a fitness-related web app and want the ability to detect various activities like cycling, running, walking, etc via a browser on a mobile device. I understand there are CMMotionActivity and Activity Recognition APIs for iOS and Android…
0
votes
1 answer

how do i print iterations in fitness function

I want to monitor the progress of the algorithm in order to understand how long the algorithm will work I would like to see something like for(i in 1:100) print( paste("iter number",i)) [1] "iter number 1" [1] "iter number 2" [1] "iter number 3" [1]…
mr.T
  • 181
  • 2
  • 13