Skip to main content

June 7: Computational Thinking

In Class over the last two days we have been talking about programing and its uses such as AI.

Python Programing

    It has been quite a while since I have coded in python so I remembered how a lot of things worked but knew none of the syntax. I decided to start with the learn python 2 course on codecademy. After relearning the syntax and commands I swapped to the "Dollar to the Moon" Problem. I did not have a code editor installed so I installed  VS code as it is what I am most comfortable with. After a little bit of annoying math I got to a program that met the minimum requirements. It asked for how much debt we were in then did a bunch of math so it could print out how many times we could go to the moon.
    I decided that it was a little bit too plain so I decided to spruce it up a little bit. I had to look through the documentation for if then statements but after a touch of trial and error I had it make sure we can go instead of stating we can go the moon 0 full times. I also rewrote the input prompt while I was at it.
I made one final change before being done so it would check if it we could go to the moon no times, one time, or more then one times. It would then print out one of three messages so it looks a little better.

    I don't feel like I learned anything new as far as coding goes but this work did remind me that it is not difficult to pick a language back up even if it may feel daunting. one of my main issues is that when I want to work on a project I get stressed out when looking at all the stuff I need to relearn. This would be fine if I did not remember how coding works but all I forget is the syntax so it should not be as daunting as I make it out to be. Oh and incase you were wondering as of 6/7/2024 we can make 9 full trips to the moon using our national debt.

ChatGPT

    Yesterday's class was over the question "How biased is AI?" We first read over a couple articles about bias in AI. Our research gave a couple important details:
  • AI gets its bias based off of what it is trained on
  • Training data often has stealthy biases that fly under the radar
  • When AI only gets data based off of a small demographic it will often generalize about other demographics
    One example I found really interesting was a Amazon resume screener that was trained on historic data which hired mainly males. Because of this it assumed that males were what it was supposed to hire so it would deny female applications.

    We asked it to write a report on what we researched using the prompt "Write a 100 word report on racial and gender bias in AI." It returned the following: "Artificial Intelligence (AI) systems often exhibit racial and gender bias, reflecting societal prejudices. These biases stem from training data that disproportionately represent certain groups and exclude others, leading to discriminatory outcomes. For example, facial recognition technologies have higher error rates for people of color and women. Similarly, AI in hiring can favor male candidates if trained on biased historical data. Mitigating these biases requires diverse and representative datasets, transparent algorithms, and rigorous testing. Addressing bias is crucial to ensuring AI systems promote fairness and equity, rather than perpetuating existing inequalities."

    This was pretty similar to what we had found with our research so we tried for some thing a little more complicated, write the same report but use the article we read for evidence. We used the following prompt "Write a 100 word report on racial and gender bias in AI. Use the Vox article "Why algorithms can be racist and sexist" To support your report." This worked a lot worse then the first prompt with ChatGPT returning "AI systems often reflect and perpetuate racial and gender biases due to the data they are trained on and the assumptions built into their design. According to a Vox article, these biases emerge when AI algorithms learn from historical data that contains human biases. For example, employment algorithms might suggest nursing jobs primarily to women and mechanic jobs primarily to men if the training data shows such trends, thus reinforcing gender stereotypes (Mozilla Foundation) (Homepage). Similarly, racial biases can be amplified, leading to discriminatory outcomes, such as disproportionately targeting Black individuals in predictive policing algorithms (Mozilla Foundation) (Pitt Cyber). Addressing these issues requires greater transparency and efforts to ensure fair and representative training data (Fair Bytes) (Pitt Cyber)." You may notice that it did not cite the Vox article and instead cited similar articles on the subject.

    All in all I think that the AI has lots of bias but I am not fully sure to the degree. It does return results as if it was biased which is a bias in of it self and I am sure there is much more bias hidden under the surface.


Bonus: ChatGPT Makes a Rock

    I have asked ChatGPT to give me step by step instructions on how to make a rock using the 3D modeling software Onshape. I used the prompt: "I am trying to make a really cool rock in onshape. Pease give me step by step instructions to do so"

ChatGPT responded with the following:

"Creating a rock in Onshape can be an interesting project that helps you practice with various modeling tools. Below are step-by-step instructions to create a simple, realistic-looking rock.

Step 1: Create a New Document

  1. Open Onshape and sign in to your account.
  2. Click on the Create button and select Document.
  3. Name your document (e.g., "Rock") and click OK.

Step 2: Create the Base Shape

  1. In the new document, click on the Sketch button and select a plane (e.g., the Top plane).
  2. Click on the Circle tool and draw a circle at the origin.
  3. Set the diameter of the circle (e.g., 100mm).
  4. Click the Check button to finish the sketch.

Step 3: Extrude the Shape

  1. Select the sketch you just created.
  2. Click on the Extrude button.
  3. Set the extrusion depth (e.g., 50mm) and click OK.

Step 4: Modify the Shape to Look Like a Rock

  1. Select the extruded shape.
  2. Use the Fillet tool to round the edges. Set a small radius (e.g., 10mm).
  3. Click OK to apply the fillet.

Step 5: Add Irregularities

To make the shape look more like a natural rock, you need to add some irregularities.

  1. Click on the Plane tool to create a new plane. Offset it from one of the existing planes (e.g., Top plane) by a small distance (e.g., 20mm).
  2. Create a new sketch on this plane.
  3. Draw a spline or an irregular shape within the boundaries of the existing shape.
  4. Use the Extrude tool to cut this shape from the rock, making sure to select Remove and extrude through all.

Repeat the process of creating new planes, sketches, and extruding cuts at different angles and positions to add more irregularities.

Step 6: Add Texture (Optional)

If you want to add a texture to the rock:

  1. Click on the Appearance button (paint palette icon).
  2. Select a material or texture that resembles rock (e.g., Stone, Concrete).
  3. Apply this texture to the entire part.

Step 7: Final Touches

  1. Use the Fillet and Chamfer tools to soften some edges further and make the shape more natural.
  2. You can also use the Move Face tool to push or pull faces slightly to create more irregular surfaces.

Step 8: Save and Export

  1. Save your document by clicking on the Save button.
  2. To export the model, right-click on the part in the Parts list and select Export.
  3. Choose the desired file format (e.g., STL for 3D printing) and click OK.

By following these steps, you should be able to create a simple, realistic-looking rock in Onshape. Feel free to experiment with different tools and techniques to refine your model further."

    I don't know if y'all could have guessed it but this did not go well. A number of these tools don't work well on rounded shapes which causes a lot of problems when you start with a rounded cylinder. My attempt at its guide is below. If you would like to see my guide on how to make a rock check out my "How to make a rock (using Onshape)" blog.

    
 

Comments

Popular posts from this blog

June 10: How to make a rock (using Onshape)

3D printing and my experience with it      I have a decent amount of experience with 3D printing, I own a printer and have made a bunch of models. I have printed replacement pieces for board games, stencils for D&D battle maps. Whenever there is a problem that requires a small plastic piece of very specific parameters I can make a solution. At one point the band had water bottles whose handles would snap off every other second so I went and made a file for replacement. It is safe to say that in any practical situation I can make something. There is one thing I have no clue how to do, and that is make something completely impractical, so incredibly pointless that it exist for the shear fact that it exist. Today I made a rock. A quick discussion on the concept of rocks      Rocks do not have a reason to exist, they did not decide that they wanted to be, they simply are. Rocks are not uniform they do not attempt to be perfect in any way, a rock that is a p...

June 6: Pseudoscience

Is SETI Pseudoscience?      Today in stem in society we broke out in to groups to discuss whether or not SETI (Search for Extraterrestrial Intelligence) is real Science or Pseudoscience. Our group was composed Roju Miller, Amelia Northam, Elsie Sheumaker, and Me, Austin Newman.      We used the following sites to build our discussion This is SETI's description on what they do.  https://www.seti.org/primer-seti-seti-institute   This is an article from Nasa about the search for extraterrestrial intelligence.  https://astrobiology.nasa.gov/news/technosignatures-and-the-search-for-extraterrestrial-intelligence/    This article is a debate on whether or not Fermi's paradox is disprovable and why SETI may be useful.  https://www.universetoday.com/139467/new-model-predicts-that-were-probably-the-only-advanced-civilization-in-the-observable-universe/#google_vignette     An article about a new experiment from SETI  https:...

Are CAFOs Ethical

Concentration Animal Feeding Operations or CAFOs are a way of farming animals by smushing them in to small spaces where they can barely move as much as turn around. In these horrible operations the animals are fed horribly and are mainly sustained on anti biotics. But are they Ethical???? Yes totally absolutely ethical 100 percent for real (for the record I was forced to take up this position) and here is why: It is efficient. In order to keep the same output we would have to use thousands times more land. Factory farmed cows produce less methane so if you think about it CAFO's are saving the planet. CAFO's cause cancer,... Which is actually a good thing because if more people get cancer then more people will be on the verge of death and resort to experimental treatment. If more people take experimental treatment it will become better until eventually we will have a cure. They are the only way we can get the meat production that we currently have in the US. If we were to shut d...