--- base_model: sentence-transformers/all-mpnet-base-v2 library_name: setfit metrics: - accuracy pipeline_tag: text-classification tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer widget: - text: "[brainstorm] Improving `makeseeds.py` \r\nA. Filtering hosts with multiple\ \ ports can be removed IMO:\r\n\r\nhttps://github.com/bitcoin/bitcoin/blob/c44e734dca64a15fae92255a5d848c04adaad2fa/contrib/seeds/makeseeds.py#L215\r\ \n\r\n\r\nB. Tor v3 can also be included in the results.\r\n\r\nC. Recent observation\ \ which can be confirmed with:\r\n\r\n```\r\nwget https://gitlab.com/api/v4/projects/33695681/packages/generic/nrich/0.1.1/nrich_0.1.1_amd64.deb\r\ \nsudo dpkg -i nrich_0.1.1_amd64.deb\r\nhost -t a seed.bitcoin.sipa.be | sed -e\ \ 's/seed.bitcoin.sipa.be has address //g' | nrich -\r\n```\r\n\r\nPossible reasons\ \ for vulnerable machines used for bitcoin nodes:\r\n\r\n1. False positives\r\n\ 2. Users not aware or don't care\r\n3. Attackers prefer using these for better\ \ results\r\n4. Honeypots\r\n5. Other reasons\r\n\r\nLeaving 1 which won't be\ \ true for all the results, filtering such nodes in `makeseeds.py` should make\ \ sense. Below is an example for one IP copied from [`suspicious_hosts.txt`](https://github.com/bitcoin/bitcoin/blob/master/contrib/seeds/suspicious_hosts.txt)\r\ \n\r\n\r\n```python\r\nip = '88.198.17.7'\r\n\r\nurl = 'https://internetdb.shodan.io/'\ \ + ip\r\nresponse = requests.get(url)\r\n\r\nif response.text.find('CVE') !=\ \ -1:\r\n print('vulnerable')\r\n```" - text: Add "walletpassphrasechange" command in bitcoin-wallet.exe This is an underrated useful tool. Dear devs, please add this "feature". Thanks. - text: "qa: Intermittent failure in feature_segwit.py --descriptors https://api.cirrus-ci.com/v1/task/5763159330914304/logs/ci.log\r\ \n```\r\n5/238 - feature_segwit.py --descriptors failed, Duration: 11 s\r\n\r\n\ stdout:\r\n2022-03-16T18:38:33.242000Z TestFramework (INFO): Initializing test\ \ directory /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_\U0001F3C3\ _20220316_183814/feature_segwit_225\r\n2022-03-16T18:38:39.177000Z TestFramework\ \ (INFO): Verify sigops are counted in GBT with pre-BIP141 rules before the fork\r\ \n2022-03-16T18:38:43.168000Z TestFramework (INFO): Verify witness txs cannot\ \ be mined before the fork\r\n2022-03-16T18:38:43.200000Z TestFramework (INFO):\ \ Verify unsigned p2sh witness txs without a redeem script are invalid\r\n2022-03-16T18:38:43.630000Z\ \ TestFramework (ERROR): JSONRPC error\r\nTraceback (most recent call last):\r\ \n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py\"\ , line 132, in main\r\n self.run_test()\r\n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/feature_segwit.py\"\ , line 210, in run_test\r\n self.generate(self.nodes[0], 4) # blocks 428-431\r\ \n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py\"\ , line 639, in generate\r\n blocks = generator.generate(*args, invalid_call=False,\ \ **kwargs)\r\n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py\"\ , line 303, in generate\r\n return self.generatetoaddress(nblocks=nblocks,\ \ address=self.get_deterministic_priv_key().address, maxtries=maxtries, **kwargs)\r\ \n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py\"\ , line 311, in generatetoaddress\r\n return self.__getattr__('generatetoaddress')(*args,\ \ **kwargs)\r\n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/coverage.py\"\ , line 49, in __call__\r\n return_val = self.auth_service_proxy_instance.__call__(*args,\ \ **kwargs)\r\n File \"/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/authproxy.py\"\ , line 144, in __call__\r\n raise JSONRPCException(response['error'], status)\r\ \ntest_framework.authproxy.JSONRPCException: CreateNewBlock: TestBlockValidity\ \ failed: unexpected-witness, ContextualCheckBlock : unexpected witness data found\ \ (-1)\r\n2022-03-16T18:38:43.682000Z TestFramework (INFO): Stopping nodes\r\n\ 2022-03-16T18:38:43.856000Z TestFramework (WARNING): Not cleaning up dir /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_\U0001F3C3\ _20220316_183814/feature_segwit_225\r\n2022-03-16T18:38:43.856000Z TestFramework\ \ (ERROR): Test failed. Test logging available at /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_\U0001F3C3\ _20220316_183814/feature_segwit_225/test_framework.log\r\n2022-03-16T18:38:43.866000Z\ \ TestFramework (ERROR): \r\n2022-03-16T18:38:43.866000Z TestFramework (ERROR):\ \ Hint: Call /tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/combine_logs.py\ \ '/tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_\U0001F3C3_20220316_183814/feature_segwit_225'\ \ to consolidate all logs\r\n2022-03-16T18:38:43.866000Z TestFramework (ERROR):\ \ \r\n2022-03-16T18:38:43.866000Z TestFramework (ERROR): If this failure happened\ \ unexpectedly or intermittently, please file a bug and provide a link or upload\ \ of the combined log.\r\n2022-03-16T18:38:43.867000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues\r\ \n2022-03-16T18:38:43.867000Z TestFramework (ERROR): \r\n```" - text: "Rpc not working on 0.17.1 ```\r\ncurl --user test:test --data-binary '{\"\ jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"getbalance\", \"params\"\ : [\"*\", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\r\ncurl:\ \ (7) Failed to connect to 127.0.0.1 port 8332: Connection refused\r\n\r\n```\r\ \nBut version 0.16 works " - text: "guix: Prints \"g++: not found\" when building depends Steps to reproduce:\ \ Start a guix build on a system without gcc.\r\n\r\n\r\n```\r\n/bin/sh: 1: gcc:\ \ not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh:\ \ 1: g++: not found\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++':\ \ No such file or directory\r\nFound macOS SDK at '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/SDKs/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers',\ \ using...\r\nmake: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: g++:\ \ not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh:\ \ 1: gcc: not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh: 1: g++: not found\r\ \nmake[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: g++:\ \ not found\r\n/bin/sh: 1: g++: not found\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++':\ \ No such file or directory\r\nenv: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++':\ \ No such file or directory\r\nmake[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \nmake[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: g++:\ \ not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh:\ \ 1: gcc: not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh: 1: g++: not found\r\ \nmake[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \nmake[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\ \n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: gcc: not found\r\n/bin/sh: 1: g++:\ \ not found\r\n/bin/sh: 1: g++: not found\r\n/bin/sh: 1: x86_64-w64-mingw32-gcc:\ \ not found\r\n/bin/sh: 1: x86_64-w64-mingw32-gcc: not found\r\n/bin/sh: 1: x86_64-w64-mingw32-g++:\ \ not found\r\n/bin/sh: 1: x86_64-w64-mingw32-g++: not found\r\nmake[1]: Leaving\ \ directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\nmake: Leaving\ \ directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'\r\nINFO: Building\ \ commit a4903f747ccd for platform triple x86_64-linux-gnu:" inference: true --- # SetFit with sentence-transformers/all-mpnet-base-v2 This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/all-mpnet-base-v2](https://huggingface.co./sentence-transformers/all-mpnet-base-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification. The model has been trained using an efficient few-shot learning technique that involves: 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning. 2. Training a classification head with features from the fine-tuned Sentence Transformer. ## Model Details ### Model Description - **Model Type:** SetFit - **Sentence Transformer body:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co./sentence-transformers/all-mpnet-base-v2) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 384 tokens - **Number of Classes:** 3 classes ### Model Sources - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit) - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055) - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co./blog/setfit) ### Model Labels | Label | Examples | |:---------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | bug |