Had a good, cathartic ride yesterday:
GPT-2 Agents
- I’ve been working on the PGNtoEnglish class and was having an odd bug where occasionally a piece would pull a piece from the other side of the board. Since it was intermittent, it required many print statements and searching through the logs for “black knight”
- My problem was in forgetting how Python indexes into arrays. Here’s the code in question:
- When I first wrote this, I had to deal with a lot of potential coordinates that were off the board, with indexes like (-2, -1), or (10, 8) for an 8×8 board. I thought to handle this with a try/except on IndexError (the bottom highlight). In other languages this would have worked, but Python allows negative indexes. Ooops! Adding the test for either index being negative (the top highlight) fixed that bug
D20
- Ping Zach – done
GOES
- Write up code review thoughts for Erik -done
- Add n_critic to base class, along with adjustable false flag value
- First, making sure that everything still works. Seems to.
- Here’s the best I can do today, using the OneDGAN2a class with an RMSProp(lr=0.0005)
- Assemble all the bits for an example
- Verified that the InfluxTestTrainBase still works, and it’s using the InfluxDB values
- Assemble all the bits for an example
- Created a NoiseGAN2 with the same amount of points as the InfluxTestTrainBase model – done. Looks real good on the noise, too:
- How to trim the columns on a 2D Numpy array:
results = self.ifq.run_query(self.bucket, begin, end, filter_str) results = self.ifq.to_nd_array(results) results = np.delete(results, slice(clamp, None), 1) predict_table = model.predict(results)
- Here’s all the parts nailed together:
- Start the paper and the deck
ML Group
- Need to create a walkthrough of coding practices for next week. I think I’ll use the trajectory of the GAN coding as the basis