Streamlit Form A form is a container that visually groups other elements and widgets together, and contains a Submit button. When the submit button is pressed, all widget values inside the form will be sent to Streamlit in a batch To add elements to a form object, we can use the “with” notation (more preferred), […]
Streamlit Session State
By default, Streamlit re-runs your script top to bottom whenever a user interacts with a widgetWhat this means is that all variables resets unless you use Session State Need a Streamlit developer?: Click Here Introduction st.session_state allows us toPreserve values across rerunsStore user inputs, counters or configurationsShare data between widgets and callbacksMange app state like in […]
Streamlit Tutorial
Streamlit can help businesses automate a ton of tasks in a short amount of time. It essentially is a quick UI you can throw on top of Python code allowing you to build models and spreadsheet calculations very quickly. In this streamlit course we are going to cover the basics of Streamlit from creating your […]
Gradient boosting classifier
Gradient Boosting is an ensemble technique that builds a strong model by combining multiple weak decision trees. While it may seem similar to a Random Forest, there’s a key difference: in Random Forests, each tree is built independently, whereas in Gradient Boosting, trees are built sequentially, with each new tree correcting the errors of the […]
Reflexion Prompting
This technique is highly effective for chatbots and problem-solving tasks. It also helps reduce hallucinations by incorporating a form of quality control. The process involves: Starting with an initial prompt Getting the AI’s first response Sending a reflexion prompt asking the AI to review and reflect on its first answer Receiving an optimized response, improved […]
Python For Loop
Loops are used to repeat a block of code multiple times. “for” loop in python is used when the number of repetition is known. “while” loop is used when the number of repetition is not known in advance, or can be infinite but there have to be a condition for stopping or exiting out the […]
Python Dictionaries
A Python dictionary is a built in data type used to store key-value pairs. It is similar to a real dictionary where you have to look up a word (key) to find its defintion (value) In Python, a dictionary stores data in linked key-value pairs Each key is connected to a specific value, making it […]
Python sets
A set in Python is a built-in data type used to store unique elements—that is, it automatically removes duplicates. Sets are defined using curly braces {}, and they are unordered and unindexed, meaning the items have no specific position or order. While sets are generally unchangeable in terms of individual items (you can’t change elements […]
Python Lists
https://www.youtube.com/watch?v=nQgN1y_KGLc&list=PLcQVY5V2UY4JlNQqDqmxwXgUy6QGhpgVY&index=3#numbers, booleans, string, list of lists#matrix is a 2d list#part 1 make your first list#list with numbers#list with strings #part 2 grab elements grab multiple elements from listhttps://go.elementor.com/widget-image #every 2nd letter #unpacking #part 4 replace elements #Part 5 Methods #ascending #return index #add to python list #add another list using extend metiod #3rd way to […]
Python If Elif Else
Conditional Statements and Logical Operators in Python Use if, elif, and else to control the flow of your program based on conditions. You can write nested conditions (conditions inside other conditions) for more complex logic. Python supports comparison operators (like ==, !=, <, >, <=, >=) to compare values. You can combine conditions using logical […]