Compare commits
2
Commits
docker
...
docker-merge
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ac9f5dcbe | ||
|
|
7dd5fbd84b |
Generated
+8
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
Generated
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="Flask">
|
||||
<option name="enabled" value="true" />
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
|
||||
<option name="TEMPLATE_FOLDERS">
|
||||
<list>
|
||||
<option value="$MODULE_DIR$/templates" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
</module>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
Generated
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/analytics_learning.iml" filepath="$PROJECT_DIR$/.idea/analytics_learning.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Binary file not shown.
@@ -110,4 +110,4 @@ def index():
|
||||
return render_template('kolmogorov_smirnov.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
app.run(debug=True, port=8000)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,92 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Statistical Analysis Application</title>
|
||||
<style>
|
||||
/* styles pour les boutons */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #007bff;
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.btnn {
|
||||
display: inline-block;
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #007bff;
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.btnn:hover {
|
||||
background-color: #0062cc;
|
||||
}
|
||||
|
||||
/* styles pour le formulaire */
|
||||
form {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 24px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ddd;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Statistical Analysis Application</h1>
|
||||
<form action="/result" method="post">
|
||||
<label for="test_statistique">Statistical Test</label>
|
||||
<select name="test_statistique" id="test_statistique">
|
||||
<option value="distribution">Distribution fitting</option>
|
||||
<option value="t_test">Two-sample problem</option>
|
||||
<option value="correlation_regression">Correlation/Regression</option>
|
||||
<option value="classification">Classification</option>
|
||||
</select>
|
||||
|
||||
<label for="sample_size">Sample size</label>
|
||||
<input type="text" name="sample_size" id="sample_size" placeholder="Entrez la taille de l'échantillon">
|
||||
|
||||
<label for="group_size">Group size (for two-sample tests)</label>
|
||||
<input type="text" name="group_size" id="group_size" placeholder="Entrez la taille du groupe">
|
||||
|
||||
<label for="significance">Meaning of results</label>
|
||||
<select name="significance" id="significance">
|
||||
<option value="significant">Statistically significant</option>
|
||||
<option value="non_significant">Statistically not significant</option>
|
||||
<option value="both">Both results</option>
|
||||
</select>
|
||||
</form>
|
||||
<a href="http://127.0.0.1:8000">
|
||||
<button type="submit" class="btnn">Analyze Data</button>
|
||||
</a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Plotting Distributions with Flask</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Plotting Distributions with Flask</h1>
|
||||
<h1>Plotting Distributions</h1>
|
||||
{% if error %}
|
||||
<p style="color:red;">Invalid distribution type selected</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Résultats de l'analyse statistique</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Résultats de l'analyse statistique</h1>
|
||||
<p>Voici les résultats de l'analyse statistique :</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Test statistique</th>
|
||||
<td>{{ test_statistique }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Paramètres du test</th>
|
||||
<td>{{ parametres }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Résultat</th>
|
||||
<td>{{ resultat }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Conclusion</th>
|
||||
<td>{{ conclusion }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,31 @@
|
||||
from flask import Flask, render_template, request
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
# Définir la page d'accueil
|
||||
@app.route('/')
|
||||
def home():
|
||||
return render_template('hm.html')
|
||||
|
||||
|
||||
# Définir la page des résultats
|
||||
@app.route('/results', methods=['POST'])
|
||||
def results():
|
||||
# Récupérer les données entrées par l'utilisateur
|
||||
test = request.form['test']
|
||||
sample_size = request.form['sample_size']
|
||||
group_size = request.form['group_size']
|
||||
outcome_variable = request.form['outcome_variable']
|
||||
significance = request.form['significance']
|
||||
|
||||
# Appeler les fonctions appropriées pour effectuer les calculs et les tests statistiques
|
||||
# En fonction des données entrées par l'utilisateur
|
||||
|
||||
# Renvoyer les résultats à la page des résultats
|
||||
return render_template('rs.html', test=test, sample_size=sample_size, group_size=group_size,
|
||||
outcome_variable=outcome_variable, significance=significance)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
Reference in New Issue
Block a user