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

How to select random rows from a matrix in python scratch without any numpy library

Hi i am trying to inplememt Genetic algorithm rollete wheel selection mechanism. I have done fitness and also the corresponding fitness probability. I need a code to randomly select rows from initial generated matrix.but only using scratch python bc…
0
votes
0 answers

what is the cause of my GA plot only shows straight lines

i have no idea, Is this plot appropriate because the fitness function I created is like that? output plot here is the code: library(GA) frame_uji <- data.matrix(data_uji) sum_fu <- matrix(0, nrow = 350, ncol = 1) sum_fu <-…
Noval
  • 1
  • 4
0
votes
1 answer

REST API support for Apple HealthKit data

Is there a REST API support to query apple health kit data? I want to fetch these data from a server application on behalf of a user.
0
votes
1 answer

Flutter Heath package requestAuthorization() always returns false

I'm going to use the flutter health package to get step data. But I can't get permission from Gmail for my app by using this method. I have already added test users to the Google console in the GCP project. Any solution?
Daham Akalanka
  • 295
  • 1
  • 10
0
votes
0 answers

How to do a fitness function to find the best path in a search problem (Genetic Algorithm)

I have to be able to, with this 'dataset' (its a graph): ... { 0 : [3,2,1], 1 : [4], 2 : [6,5], 3 : [7], 4 : [8], 5 : [9] } ... input a initial and a final value with a goal to show the best path possible through Genetic Algorithm ( my…
HelloWorldd
  • 172
  • 2
  • 14
0
votes
1 answer

Google sign-in does not work for Fitness API on Android

I have just started working with the Fitness API for Android. I started my journey on Google's Android developer site and followed the steps to set up my first application. I created my Client ID and OAuth scopes, added my email address as a test…
piet90
  • 13
  • 1
  • 3
0
votes
1 answer

passing a function pointer to a method

I've read some posts about function pointers but I still don't understand how to use 'function pointers' the best for my case. Also in this case It isn't clear to me the use of anonymous classes... Here the code: class Fitness { private List <…
mickey
  • 1
0
votes
1 answer

Minimising greatest distance moved

I'm trying to find if there are any solutions for a problem I've got. I've got X people and Y positions to place them in. Sometimes there might be more people than positions, but in the default case X==Y. I want to allocate the people such that the…
Antony
  • 1
0
votes
1 answer

I am not able to find Fitness v1 in Step 1 in OAuth 2.0 Playground

On the Google OAuth 2.0 PLayground, I am not able to find Fitness v1 under Step 1: Select and Authorize APIs. Please help me with the same as soon as possible.tn screenshot of the OAuth playground
0
votes
0 answers

Fitnesse test page throwing an exception

I'm running Fitnesse testing tool via Jenkins. Jenkins runs fitnesse after fixed interval. Following is the test page:-Fitnesse Test Page 1.creating script file 2. running it In this, I'm simply printing message but this test page sometimes thrown…
0
votes
5 answers

How can I implement a R code for AUC in genetic algorithm

I am doing research on applying a genetic algorithm to binary logistic regression. I have a few questions to be clarified. Can you please help me? Can I use AIC or BIC as the fitness function in the GA? (I used them and results show that GA is…
0
votes
1 answer

How to fix : Require at least one aggregateby - google fitness api?

there related but without response: How to fix Error: Require at least one aggregateby? - fitness api const fitness = google.fitness({ version: 'v1', auth }); fitness.users.dataset.aggregate( { aggregateBy: [ { …
darekdede1995
  • 66
  • 1
  • 8
0
votes
1 answer

Need help to create login system for gym clients

I'm creating an application for my gym that I own and for my clients through Android Studio, using Java. I am using Firebase for my database. I would like to keep track of the days the my clients show up and also maybe a like a countdown timer of…
0
votes
0 answers

How to improve my fitness function for real values?

I am creating an evolutionary algorithm that is used in a game of mine that gets an enemy NPC (Individual) and its properties (health, speed, attack power, etc.) which are all float numbers. The aim is the enemy's properties to match the target…
0
votes
0 answers

Evaluation stuck at local optima in genetic programing DEAP. How to prevent GP from converging on local optima?

I'm trying to do a symbolic regression of a geometric model. And it gets stuck at most of the time with a fitness score that is not near 0. So I did a couple of research and find out it is the problem with local minima. And some people tried to…
Snigdhajyoti
  • 1,327
  • 10
  • 26