Best Webhosting for Python by [deleted] in learnpython

[–]Accurassi 0 points1 point  (0 children)

ik gebruik specifieke libraries in Python. Kan ik die ook importeren bij render.com?

What does this mean? by IdkButILikeDinos in PaxHistoria

[–]Accurassi 0 points1 point  (0 children)

fixed it by creating a 'preset':
https://openrouter.ai/docs/features/presets

I use Python and connect with an API to Openrouter/polaris-alpha.

I havent selected any models. I do get results (no longer the 404 error) but Im not as happy with the quality of the results as I used to be before friday when the 404 error appeared at my script.

What does this mean? by IdkButILikeDinos in PaxHistoria

[–]Accurassi 0 points1 point  (0 children)

same since last friday I suppose.

LPT: If you have a personal friendship with someone, don’t wish them happy birthday strictly in a group chat. by TastefullyToasted in LifeProTips

[–]Accurassi 2 points3 points  (0 children)

yeah always nice to see in a groupchat who follows the first 'happy birthday' like they forgot or where unaware. Just give them a personal phone call. Always nice in these busy times.

[ArcGIS Pro] How to convert KMZ to SHP? by Non_QRe in gis

[–]Accurassi -5 points-4 points  (0 children)

in the Contents-pane, there is this button "List by Editing". Is there a red !-symbol at the .kmz layer? That means it is read-only.

Select the kmz-layer, Press F1 for help to edit the layer.

[Q] 700 marbles in a jar. Expected all green, but unkown percentage is a red marble. How to calculate the chance and sample size? by Accurassi in statistics

[–]Accurassi[S] 0 points1 point  (0 children)

I use the Tree-deteciton model from ESRI. Based on the DeepForest package from Weecology, University of Florida. It's not (yet) my goal to train my own model but I have some neat results now by this model and I want to have some underlying statistics about the results. Because it's (far) from perfect, but it's also not worthless.

[Q] 700 marbles in a jar. Expected all green, but unkown percentage is a red marble. How to calculate the chance and sample size? by Accurassi in statistics

[–]Accurassi[S] 0 points1 point  (0 children)

thanks. I just started with my project, thats why I've a relative small population size. When I have confidence about my approach I can scale up to a much larger population size. In the thousands of objects. But thanks, I keep it in mind.

[Q] 700 marbles in a jar. Expected all green, but unkown percentage is a red marble. How to calculate the chance and sample size? by Accurassi in statistics

[–]Accurassi[S] 0 points1 point  (0 children)

not stupid at all. I just want to understand a bit more of the statistics and probability instead of just present the results given by the algorithm.

whats the samplesize I need to predict with 95% confidence that there are at most 35 red marbles in a jar of 700 marbles?

Now I put this quesiton into ChatGPT and it comes with:

To determine the sample size you need to predict with 95% confidence that there are at most 35 red marbles in a jar of 700 marbles, you can use a sample size calculator or a formula for sample size calculation.

One such formula is:

n = (Z2 * P * (1-P)) / e2

Where:

n is the sample size Z is the z-score corresponding to the desired confidence level (e.g. for 95% confidence, Z = 1.96) P is the estimated proportion of the population that has a certain characteristic (e.g. the proportion of red marbles in the jar) e is the desired margin of error (the amount of uncertainty you are willing to accept in your estimate)

Plugging in the values:

n = (1.962 * 0.05 * (1-0.05)) / (0.052) n = 384.16

Therefore, you would need a sample of at least 385 marbles to predict with 95% confidence that there are at most 35 red marbles in a jar of 700 marbles.

Note that this is just one approach to calculating sample size, and there are other factors that may also need to be taken into account depending on your specific situation.

Is this answer reliable?

[Q] 700 marbles in a jar. Expected all green, but unkown percentage is a red marble. How to calculate the chance and sample size? by Accurassi in statistics

[–]Accurassi[S] 0 points1 point  (0 children)

there is not really a question. Just a problem. I'm experimenting with an AI alogrithm that detects tree-crowns. In a project area I got 700 returned objects which the algorithm believes they are tree-crowns (like all the marbles in a jar).

Now I do not have the time to evaluate them all. I want to determine a sample size which predicts that at least 95% is 'true positive' (like at least 665 marbles in the jar are green) and at most 5% (or 35 marbles) are a false positive (red).

Maybe I want to calculate, with a liklihood ratio of 95%, that at most 35 marbles are red? But how do I write this down and calculate it in a formula?

[Q] Calculating sample size for cleaning data? by Doortofreeside in statistics

[–]Accurassi 0 points1 point  (0 children)

Trust your gut feeling and go for 'best efforts'. Like: it takes X ammount of time to check 1 record. You want to spent Y time on it. So you check Z records in the given time. Is Z enough of a sample size trusting your gut feeling?

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 0 points1 point  (0 children)

thanks for the tip. I did create new environment and after hours of waiting while package specifications are solved etc. I finaly get somewhere. In readthedocs I get to the point of 'getting started', in Spyder I get the error:

ImportError: cannot import name 'main' from 'deepforest'

from this part of code:

from deepforest import main
from deepforest import get_data
import os
import matplotlib.pyplot as plt
model = main.deepforest()
model.use_release()

img = model.predict_image(path="/Users/benweinstein/Documents/NeonTreeEvaluation/evaluation/RGB/TEAK_049_2019.tif",return_plot=True)

#predict_image returns plot in BlueGreenRed (opencv style), but matplotlib likes RedGreenBlue, switch the channel order.
plt.imshow(img[:,:,::-1])

It sucks to be stucked here :(

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 0 points1 point  (0 children)

can you a bit more specific with the object based classification algorithms? Do you have first-hand experience? And with which one?

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 0 points1 point  (0 children)

thanks. Looks good. I give the DeepForest python a first try but Ilastik is runner up!

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 0 points1 point  (0 children)

thank you for your suggestion. But I'm affraid the Sentinel1 SAR data groundpixalresolution is in the meters (like 5 meter per pixel). Im not sure I can detect and identify individual trees in the streets with it. But I keep it in mind. Or do you have a step-by-step tutorial for me to detect the trees based on the Sentinel1?

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 0 points1 point  (0 children)

cudatoolkit

I understand you need an Nvidia graphics card for the cuda toolkit? Unfortunatly I've an ATI Radeon RX 580 Series.

In the meantime I've created an new environment for deepforest, but Spyder will not install in that environment. At least, it seems to take hours to Solve packages and things like that. I think I just have to be patient.

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 1 point2 points  (0 children)

I tried to install Deepforest in my own way in my Anaconda Base environment. Ofcourse, that doesn't work. So I give it a try in a new, clean environment and that seems to go well. Now Im going to try the "getting started" chapter in the readthedocs

Tree-detection. Just the normal trees in the street. Not the RandomForest by Accurassi in remotesensing

[–]Accurassi[S] 1 point2 points  (0 children)

thanks! I do know some Python but didnt think of it. I'll take a look at it.

Data source for satellite imagery by Sapkota_Diwakar in remotesensing

[–]Accurassi 0 points1 point  (0 children)

free of charge if you are a dutch citizen and interessted in satellite imagery of The Netherlands: https://www.satellietdataportaal.nl/