Comments (5)
Don't know how to calculate what you described above, can you give me some example? if we can derive the calculation algorithm, then I can implement it as an other score.
from rarity-analyser.
Essentially it would be being able to set in the config file an array of json key/value pairs that are not used when calculating the rarity score and attribute count.
For example in the config.js file a line such as:
ignore_traits: ["B","C","D"],
Using example collection.json below:
{"id": 1,
"name": "A cool NFT #1",
"image": "https://ipfs.io/ipfs/QmZPh1HHUS2etc3WaUqgGmxgAjt5gCJSD1iDcJvYws2V1/nft-image.jpg",
"description": "Some funny description here.",
"attributes": [
{"trait_type": "A", "value":"0"},
{"trait_type": "B", "value":"1"}, // ignored
{"trait_type": "C", "value":"2"}, // ignored
{"trait_type": "D", "value":"3"}, // ignored
{"trait_type": "E","value":"4"},
{"trait_type": "F","value":"5"},
{"trait_type": "G","value":"6"}
],
"external_url": "https://example.com/1"}
Would exclude trait_types "B", "C" and "D" from the rarity score and attribute count calculations.
from rarity-analyser.
I see, will implement, thanks!
from rarity-analyser.
Awesome thanks! I think would be a useful addition to this for a lot of projects.
from rarity-analyser.
Merged #3
from rarity-analyser.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rarity-analyser.