Posts

Showing posts with the label chatGPT

GA Vibes

Image
https://en.wikipedia.org/wiki/Chromosome#/media/File:Chromosome_structure.png I have been interested in  evolutionary computation  (EC) for quite a while. Evolutionary computation is a family of algorithms for global optimization inspired by biological evolution. Genetic algorithms  (GA) are a form of EC commonly used for the solution of optimization problems. The method is inspired by natural selection. In a genetic algorithm, a population of candidate solutions to the optimization problem are encoded as chromosomes, an analogy to biological chromosomes. Each chromosome is an encoding of the parameters needed to generate a possible value of the function being optimized. The encoding might be a bitmap, a vector, program code, or any representation that can be used to calculate the objective function. For each chromosome, a fitness or score is calculated. The score is the value of the objective function for that chromosome. The full evaluation of the set of chrom...

Test Driving DeepSeek -R1 Part 3

Image
  Generated by Janus Pro 7B  https://www.yeschat.ai/features/janus-pro I have trouble with PyMC . PyMC is a probabilistic programming library for Python for building Bayesian models. Whenever I try to use it, I end up searching the web or asking an LLM to help with current syntax. It seems that there are two active versions, PyMC3 and PyMC5. The apis for the versions differ. PyMC5 is still under development. My trouble is that LLMs confuse the two and mix up the syntax of the versions. Searching the web leads to more confusion because many posts don't indicate which version they are referring to.   ChatGPT o3-mini has just been released. I wanted to see how DeepSeek-R1 stacked against it for a simple programming task using PyMC. I gave both the same simple prompt. generate python code to locate change points in a time series using pymc5 ChatGPT o3-mini did a reasonable job. The code worked without modifications. It generated some nice graphs using ArviZ to illu...