104 questions
0
votes
1
answer
149
views
Bluetooth Data from Fitness Machines are not Matching the Standard from Bluetooth SIG
I am building an app with the Flutter framework that would benefit from being able to pull data from various fitness devices including Fitness Machines. I'm using Flutter Blue Plus to search for ...
1
vote
2
answers
68
views
I must fit sigmoid functions to two types of datasets (6 datasets each) with r^2 values, then plot derivatives of the fit functions. I get errors
The code worked for one of the datasets but not the other. I receive errors (shown at the bottom of my provided code).
You can see that I have two commented out data sections by type: One for work ...
0
votes
0
answers
26
views
How to solve too many input arguments
I've tried to add angle ratio function into my fitness evaluation function. When i've run the code, the error shows "Too many input arguments" for line code: tmp_angle = angle(points(j-1, :),...
0
votes
1
answer
217
views
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 ...
0
votes
1
answer
715
views
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
2
answers
813
views
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/...
1
vote
1
answer
2k
views
YOLOv5: does best.pt control for overfitting?
After each YOLOv5 training, two model files are saved: last.pt and best.pt. I'm aware that:
last.pt is the latest saved checkpoint of the model. This will be updated after each epoch.
best.pt is the ...
1
vote
1
answer
254
views
How do i scale my fitness values? (using PyGAD)
As the title says, i want to use fitness scalling methods, such as sigma scalling, for i'm having problems with premature genetic conversion in non-optimal solutions.
I know that PyGAD has a ...
0
votes
1
answer
31
views
What metric should be minimized when trying to find a subset of points from a given set so that the selected points are uniformly distributed?
Given a set of n points, I have to find a subset of given size m<size(n), so that the points in the selected subset are as uniformly distributed as possible across the volume enclosed by the convex ...
0
votes
0
answers
59
views
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', '...
0
votes
0
answers
99
views
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 ...
0
votes
1
answer
812
views
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: ...
1
vote
1
answer
156
views
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 ...
0
votes
0
answers
201
views
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 ...
3
votes
1
answer
372
views
Service account authentication for Google Fit API
I am quite a beginner and I am trying to write a standalone Node/JS application that will run on a raspberry pi, without any GUI.
I need to retrieve physical activity data from the Google Fitness REST ...
0
votes
0
answers
255
views
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 ...
-2
votes
1
answer
525
views
Is this considered a fitness function for a genetic algorithm?
I start off with a population. I also have properties each individual in the population can have. If an individual DOES have the property, it’s score goes up by 5. If it DOESNT have it, it’s score ...
0
votes
1
answer
45
views
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] &...
0
votes
1
answer
349
views
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 ...
0
votes
0
answers
41
views
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, ...
0
votes
1
answer
286
views
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.
2
votes
0
answers
181
views
Android Wear OS with Google Fitness API
I have an application with package name: com.x, and I created a module wear OS with package name com.x.watch.
I created a separate project for each on firebase linked to Google API console. I enabled ...
0
votes
1
answer
993
views
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 ...
1
vote
0
answers
133
views
How to access the heart rate sensor on my Fitness Tracker?
I have an E66 fitness tracker and health watch that has a real time heart rate and temperature sensor. The watch only records heart rate data at intervals from 10 mins and upwards with the default ...
0
votes
0
answers
183
views
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 ...
1
vote
0
answers
334
views
Continuous Heart Rate Monitoring from Google Fit App
I'm developing an app for Android (only for smartphone) and I want to monitor continuous heart rate using googleApiClient (Google Fit) from smartwatch (Polar Unite fitness band).
What I have done to ...
1
vote
0
answers
347
views
how to find Particle swarm optimization (PSO) fitness function in R programming?
I'm new to Machine Learning, so kindly ask for more details if required or do point me towards the resources I should read to have a better understanding. Lets say I have a data set consisting of ...
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
128
views
jenetics: Fitness: Assign an object to the determination of fitness & complex fitness result type
I am using an IntegerChromosome which is an encoding for the actual problem. To determine the fitness I have to decode from the IntegerChromosome, or more the IntegerGene values, to the actual base ...
1
vote
1
answer
163
views
Difference between DEAP fitness and fitness.value
For the following code, why does printing out ind.fitness and printing out ind.fitness.values returns the same exact output. Does it mean the method is the same or is there any difference?
for ind, ...
1
vote
1
answer
405
views
React native react-native-fitness
For some reason Fitness.requestPermissions(permissions).then((authorized) => { console.log(authorized) } always returns false. Also in documentation it says it permissions should be:
const ...
0
votes
1
answer
34
views
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...
...
0
votes
1
answer
154
views
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
536
views
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 ...
2
votes
1
answer
6k
views
Migrating Samsung Health data without Samsung Cloud account
I am currently migrating to a new phone and would like to sync the Samsung Health data.
I don't have a Samsung Cloud account and don't want to sync my stuffs anywhere except my new phone.
There was ...
0
votes
5
answers
221
views
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 ...
0
votes
1
answer
353
views
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(
{...
0
votes
1
answer
156
views
Need help to create login system for gym clients [closed]
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 ...
4
votes
2
answers
447
views
How to scale and weight fitness of a given values?
I'm working on a GA. My problem is as follows. I have a fitness function which takes a couple of values:
A - value which is huge, but less important for example 999999.
(weight of importance 30% ...
0
votes
0
answers
101
views
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 ...
0
votes
0
answers
428
views
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 ...
0
votes
1
answer
268
views
Why does my genetic algorithm return negative fitness values?
I'm trying to minimize the function and then graph it, but I'm getting negative fitness values and I don't know how or why. I'm using the GA package which basically handles the algorithm for me as ...
0
votes
2
answers
563
views
How to clamp a value from 0 to infinite to a value from 1 to 0?
I am creating a program in Scala that needs to generate a fitness function based on the line that I provide it with.
To generate the fitness function I wrote a method that
takes a list of points and ...
2
votes
1
answer
2k
views
Using firebase google auth and google fit api with single OAuth2 token
I am currently working on a simple web app that will make an GET call to a user's google fit data.
To reduce the complexity of the app, I plan to host it on firebase and take full advantage of cloud ...
1
vote
1
answer
115
views
Find the correct fitness function for optimization using Differential Evolution for budgeting problem
i am building a website for recommendation system using differential evolution.
The website will ask the user's budget and some criteria and will return the optimal package.
The data field look like ...
4
votes
1
answer
2k
views
Python DEAP - Custom fitness function
My question is about the possibility to implement a custom fitness function in DEAP/Python in my Genetic Programming implementation.
After search and reading DEAP official documentation, i don't find ...
3
votes
1
answer
236
views
How to know whether i'm forcing convergence too much, if my GA converges to the RIGHT solution quickly?
I'm developing a genetic algorithm to solve a two-dimensional knapsack problem. Currently, I'm testing with 50 itens, each one having a weight, volume, and value.
Each cycle, 10(of my population of ...
1
vote
0
answers
173
views
How to get data from Mi band 2 and to parse a JSON?
Hi Is there any way to get steps and distance count from my Mi Band 2 and to parse a JSON hosted on 000 webhost? Or a 3rd party app to do so?
1
vote
0
answers
175
views
genetic algorithm, implementation of generation of new population
I have this problem with the implementation of the generation of a new population. I have a population of matrices, I defined a fitness function and I need the value of fitness to be as low as ...
0
votes
0
answers
96
views
Defining a fitness function in the genetic algorithm
I'm in the process of developing a simple application that uses the genetic algorithm for scheduling a timetable. I had a look at various examples and most of them appear to be using the algorithm to ...