-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home_🏠.py
57 lines (45 loc) · 1.76 KB
/
Home_🏠.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from dotenv import load_dotenv
import streamlit as st
from toolkit import state_generator
def on_click_reset():
state_generator(session_state=st.session_state)
st.set_page_config(
page_title="🧬 Algorithms",
)
load_dotenv()
"""
# Demonstration of Genetics Algorithms
[![Star](https://img.shields.io/github/stars/Emilien-Foissotte/ml-genetics-algorithm-app.svg?logo=github&style=social)](https://github.com/Emilien-Foissotte/ml-genetics-algorithm-app/stargazers)
[![Follow](https://img.shields.io/github/followers/Emilien-Foissotte.svg?style=social)](https://github.com/Emilien-Foissotte)
"""
st.markdown(
"""
This webpage is a demonstration of use of Genetics Algorithms. \n \n
The goal is :
- To maximize the number of **prisoners** under custody 👤 \n \n
Knowing that :
- Prisoners are gathered in **squads** 👥
- You can fill a **Cell** ⛓️ with members of same squads
- Prisoners in **courtyard** 🚶 can be mixed from all squads.
- But in courtyard, they can't be watched..
\n
"""
)
st.divider()
st.write(
"Deep dive using tabs on the left, read more about following my blog"
"post available [here in french](https://emilien-foissotte.github.io/fr/posts/"
"2023/10/genetic-algorithm/?utm_campaign=GAWebApp) or [here in english](https://emilien-foissotte.github.io/posts/"
"2023/10/genetic-algorithm/?utm_campaign=GAWebApp)"
)
st.write("It's on you, don't disappoint Big Brother..")
st.image("pages/img/courtyard.png")
if "loaded" not in st.session_state:
state_generator(session_state=st.session_state)
else:
st.divider()
col1, col2, col3 = st.columns(3)
with col2:
st.button("Reset experiments", on_click=on_click_reset)
f"![](https://emilienfoissotte.goatcounter.com/count?p={os.getenv('TRACKING_NAME')})"