cnumr / ecoindex_reference Goto Github PK
View Code? Open in Web Editor NEWProvide useful reference data for computing ecoindex.
License: Other
Provide useful reference data for computing ecoindex.
License: Other
Je l'avais remonté à @tsecher sur son ancien repo, mais la méthode proposée sur le readme génère des warns car assert {type: 'json'}
pourrait être abandonné par Node à tout moment.
(node:1884) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
Il faudrait proposer, en plus de ce JSON un JS qui ferait exactement la même chose et l'ajouter dans les files du package.json
.
// ecoindex_reference.js
module.exports = {
"quantiles": {
"dom_size": [
0,
47,
75,
159,
233,
298,
358,
417,
476,
537,
603,
674,
753,
843,
949,
1076,
1237,
1459,
1801,
2479,
594601
],
"nb_request": [
0,
2,
15,
25,
34,
42,
49,
56,
63,
70,
78,
86,
95,
105,
117,
130,
147,
170,
205,
281,
3920
],
"response_size": [
0,
1.37,
144.7,
319.53,
479.46,
631.97,
783.38,
937.91,
1098.62,
1265.47,
1448.32,
1648.27,
1876.08,
2142.06,
2465.37,
2866.31,
3401.59,
4155.73,
5400.08,
8037.54,
223212.26
]
},
"targets": {
"dom_size": 600,
"nb_request": 40,
"response_size": 1024
},
"medians": {
"dom_size": 693,
"nb_request": 78,
"response_size": 2420
},
"grades": [
{
"value": 80,
"grade": "A",
"color": "#349A47"
},
{
"value": 70,
"grade": "B",
"color": "#51B84B"
},
{
"value": 55,
"grade": "C",
"color": "#CADB2A"
},
{
"value": 40,
"grade": "D",
"color": "#F6EB15"
},
{
"value": 25,
"grade": "E",
"color": "#FECD06"
},
{
"value": 10,
"grade": "F",
"color": "#F99839"
},
{
"value": 0,
"grade": "G",
"color": "#ED2124"
}
]
}
Savoir quelles sont les données utilisées pour calculer les quantiles de références
Rajouter une section metadata
dans le jeu de données avec des informations permettant d'identifier la source
{
"metedata": {
"source":"ecoindex.fr",
"nb_urls":75357,
"date_from": "2023-01-01",
"data_to": "2023-05-01",
"version": 202305
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.