Giter Site home page Giter Site logo

Comments (5)

fukuball avatar fukuball commented on June 14, 2024

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.

36changes avatar 36changes commented on June 14, 2024

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.

fukuball avatar fukuball commented on June 14, 2024

I see, will implement, thanks!

from rarity-analyser.

36changes avatar 36changes commented on June 14, 2024

Awesome thanks! I think would be a useful addition to this for a lot of projects.

from rarity-analyser.

fukuball avatar fukuball commented on June 14, 2024

Merged #3

from rarity-analyser.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.