-

@ f03df3d4:a4d4f676
2025-02-27 02:20:51
Block 885489
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 02:20:51
Block 885489
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 02:15:51
Block 885489
7 - high priority
6 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 02:10:51
Block 885489
6 - high priority
6 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 02:10:51
Block 885489
6 - high priority
6 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 02:05:51
Block 885489
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f648d923:820d7bb9
2025-02-27 02:05:23
I think truth social, joining the Nostr client is a good thing. Win-win cooperation.
After all, old Trump 👴is the current president of the U.S.
It can enhance the popularity of #Nostr.
-

@ cbab7074:f9f0bd61
2025-02-27 02:00:51
Block 885489
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 02:00:51
Block 885489
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 02:00:51
Block 885489
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 1ae011cb:1257a556
2025-02-27 02:00:51
Block 885489
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 52387c6b:49dbdfb2
2025-02-27 02:00:42
Expensive…..it’s all relative
-

@ f648d923:820d7bb9
2025-02-27 01:59:22
难道川普老头👴的Truth social 平台也对接Nostr?这样好👌,Nostr 又增加一员。又有优势了。川普的truth social。是应该对接Nostr,也是抱团取暖方式合作共赢。这样好。 nostr:note1s2zedk8yyzy222z6kg7f3urpakhe6ufa7u224uaw4aq8xlssvhns96jwcg
-

@ f03df3d4:a4d4f676
2025-02-27 01:55:51
Block 885488
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:50:51
Block 885488
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 01:50:51
Block 885488
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:45:51
Block 885487
6 - high priority
6 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f648d923:820d7bb9
2025-02-27 01:43:33
i'm an outgoing person,so, i 'm good at talking about much more things.
-

@ f648d923:820d7bb9
2025-02-27 01:41:13
give me a hug.before you leave .thanks.🫂🫂🫂
-

@ e7bf8dad:839ef3db
2025-02-27 01:40:51
Block 885487
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:40:51
Block 885487
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 52387c6b:49dbdfb2
2025-02-27 01:36:56
In regard to unchained and the like I find it hard to accept you are paying a fee and on their side it’s all care and no responsibility.
There is this which is a bit larger fee but your stack is insured thru Loyd’s. Seems like a better alternative https://www.anchorwatch.com/
-

@ f03df3d4:a4d4f676
2025-02-27 01:35:51
Block 885487
5 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 01:30:51
Block 885486
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-27 01:30:51
Block 885486
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:30:51
Block 885486
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ d36e8083:ac0b6bec
2025-02-27 01:26:07
🤙🍫
h/t nostr:nprofile1qqswp94gnm4epqsgjkndl4lnd8krzdj5u4mzuppdtxksdymkty63g7gpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wd3skueqpzpmhxue69uhkummnw3ezuamfdejs0jcqj7
https://haven.calva.dev/7f6e642aead80dae1ed451113efb76d53f12419b584800584826a0f3ea1c7fb8.jpg
-

@ f03df3d4:a4d4f676
2025-02-27 01:25:51
Block 885485
6 - high priority
6 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 01:20:51
Block 885483
9 - high priority
8 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:20:51
Block 885483
9 - high priority
8 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ 34d2f527:05cc8095
2025-02-27 01:18:36
Bitcoin is for the children.
https://video.nostr.build/eb58c7e14f0f57ccf4ac51f7548363d33cc11f708fc15f4329e3cb9da7bc6f69.mp4
-

@ f03df3d4:a4d4f676
2025-02-27 01:15:51
Block 885483
9 - high priority
8 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:10:51
Block 885483
8 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 01:10:51
Block 885483
8 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 94a6a78a:0ddf320e
2025-02-27 01:09:17
Bitcoin isn’t an investment. It’s an exit.
🚀 An exit from inflation.
🚀 An exit from broken banking.
🚀 An exit from governments controlling your money.
Opt out. Stack sats.
#Bitcoin #SoundMoney #Decentralization
-

@ f03df3d4:a4d4f676
2025-02-27 01:05:51
Block 885483
8 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-27 01:00:51
Block 885483
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 01:00:51
Block 885483
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 1ae011cb:1257a556
2025-02-27 01:00:51
Block 885483
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 01:00:51
Block 885483
7 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:55:51
Block 885483
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:50:51
Block 885483
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 00:50:51
Block 885483
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:45:51
Block 885483
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f648d923:820d7bb9
2025-02-27 00:42:06
网民留言说他的侄女从大专考本科,花20000元人民币去辅导班学习。专科升考本科学历。考试英语才考15分,英语总分150分。那女孩子只考15分。这还是一个大专学生。才20岁的年轻人英语总分150分只考15分,所以。中国人从小学到大专已经学了十几年的英语。最后才考15分。这类中国学生连26个英语字母都认识不全。
我最好的女同学,从小到大都与我同班的女同学,她之前考大学毕业证在考英语的时候只考8分也需要重考。现在还在当老师。还嫁给一个有钱男人,过这景衣玉食的生活。因为她家有几个加汽油的连锁店她的父亲是富豪。她原本可以进入中石化公司上班,但是她太差。她的父亲只找关系进入学校当普通女老师。她就是英语毕业考试才8分。我永远记住她就是她英语毕业考试只考8分,但是她哭着叫我教她英语。但是她脑太笨。无法教会。不过,人很善良单纯可爱的女孩子。她与我很好纯碎只觉得我英语比她好。她的父亲与我父亲也是同班同学。我和她又是从小到大的玩的同学。
-

@ f03df3d4:a4d4f676
2025-02-27 00:40:51
Block 885482
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 00:40:51
Block 885482
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ ca381d7d:8471ab1f
2025-02-27 00:39:23
Japanese wood joinery https://v.nostr.build/eb9lc5y2mY1OHczb.mp4
-

@ f03df3d4:a4d4f676
2025-02-27 00:35:51
Block 885481
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 5de23b9a:d83005b3
2025-02-27 00:33:45
"It's okay to scroll through Nostr before bed, right? But don't overdo it! Good night and happy zapping!"
#Nostr #ZappingBeforeSleep #GoodNight
-

@ f03df3d4:a4d4f676
2025-02-27 00:30:51
Block 885481
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 00:30:51
Block 885481
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-27 00:30:51
Block 885481
5 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:25:51
Block 885481
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f648d923:820d7bb9
2025-02-27 00:25:09
what you say when you drink,
this call "cheer "
-

@ f03df3d4:a4d4f676
2025-02-27 00:20:51
Block 885480
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 00:20:51
Block 885480
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 29559b74:ad6cb634
2025-02-27 00:18:13
https://m.primal.net/PMjE.jpg
-

@ f03df3d4:a4d4f676
2025-02-27 00:15:51
Block 885479
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 3f770d65:7a745b24
2025-02-27 00:13:05
🤣 Thanks for the kind words
-

@ e7bf8dad:839ef3db
2025-02-27 00:10:51
Block 885479
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:10:51
Block 885479
4 - high priority
4 - medium priority
4 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:05:51
Block 885477
6 - high priority
6 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 87730827:746b7d35
2025-02-27 00:01:53
it just works !
-

@ 1ae011cb:1257a556
2025-02-27 00:00:52
Block 885477
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-27 00:00:52
Block 885477
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-27 00:00:52
Block 885477
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-27 00:00:52
Block 885477
6 - high priority
5 - medium priority
5 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ f648d923:820d7bb9
2025-02-26 23:55:56
a name for someone you love.
this call "honey ".
-

@ f03df3d4:a4d4f676
2025-02-26 23:55:51
Block 885477
5 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-26 23:50:51
Block 885475
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:50:51
Block 885475
6 - high priority
5 - medium priority
5 - low priority
5 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:45:51
Block 885473
8 - high priority
7 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ 7f101b9a:96ff7b54
2025-02-26 23:43:13
Ffffff
-

@ e7bf8dad:839ef3db
2025-02-26 23:40:51
Block 885473
8 - high priority
7 - medium priority
7 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:40:51
Block 885473
8 - high priority
7 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ 10cb23d1:83cd9b39
2025-02-26 23:35:56
https://open.spotify.com/track/3mweCFJA6Ci17RjjzeBcdx?si=nA9QdUqSQBaCetDTULNkNg
#tunestr
-

@ f03df3d4:a4d4f676
2025-02-26 23:35:51
Block 885473
7 - high priority
7 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:30:51
Block 885473
7 - high priority
7 - medium priority
6 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-26 23:30:51
Block 885473
7 - high priority
7 - medium priority
6 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-26 23:30:51
Block 885473
7 - high priority
7 - medium priority
6 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:25:51
Block 885472
9 - high priority
8 - medium priority
7 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ ab7d9170:785ea6f7
2025-02-26 23:23:26
Still a banger nostr:nprofile1qqsds3ghsq4yx36hc44wseptl76dymj6mcr3ypfh2qs4dq8439h90xcwykqtx
This picture rocks 🫂✨🕊️
https://m.primal.net/OElQ.jpg
-

@ e7bf8dad:839ef3db
2025-02-26 23:20:51
Block 885472
8 - high priority
7 - medium priority
6 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:20:51
Block 885472
8 - high priority
7 - medium priority
6 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:15:51
Block 885472
8 - high priority
7 - medium priority
6 - low priority
4 - no priority
2 - purging
#bitcoinfees #mempool
-

@ 4857600b:30b502f4
2025-02-26 23:12:21
GM.
-

@ f03df3d4:a4d4f676
2025-02-26 23:10:51
Block 885472
7 - high priority
7 - medium priority
6 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-26 23:10:51
Block 885472
7 - high priority
7 - medium priority
6 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ df3b8a38:40ca8150
2025-02-26 23:06:09
GN frens... 😚
-

@ f03df3d4:a4d4f676
2025-02-26 23:05:51
Block 885472
6 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ 1ae011cb:1257a556
2025-02-26 23:00:51
Block 885472
6 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ cbab7074:f9f0bd61
2025-02-26 23:00:51
Block 885472
6 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-26 23:00:51
Block 885472
6 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 23:00:51
Block 885472
6 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-26 22:55:51
Block 885472
5 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ 518b2e29:cb6e6b78
2025-02-26 22:55:09
Everything is coming soon. Wen geer?
-

@ a41759d8:d3cbb6c2
2025-02-26 22:53:25
lets simplify the task to see that the code works and model learns.
this version generates sample data where output = input + 1.
//
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import argparse
import hashlib
import random
import os
class NeuralNetwork(nn.Module):
def __init__(self):
super(NeuralNetwork, self).__init__()
self.layer1 = nn.Linear(256, 256)
self.layer2 = nn.Linear(256, 256)
self.layer3 = nn.Linear(256, 256)
self.output_layer = nn.Linear(256, 256)
def forward(self, x):
x = torch.relu(self.layer1(x))
x = torch.relu(self.layer2(x))
x = torch.relu(self.layer3(x))
x = torch.sigmoid(self.output_layer(x))
return x
def train_model(model, X_train, y_train, epochs=10, batch_size=32, save_path='model_weights.pth'):
criterion = nn.MSELoss()
optimizer = optim.Adam(model.parameters())
X_train_tensor = torch.tensor(X_train, dtype=torch.float32)
y_train_tensor = torch.tensor(y_train, dtype=torch.float32)
for epoch in range(epochs):
permutation = torch.randperm(X_train_tensor.size()[0])
total_loss = 0
for i in range(0, X_train_tensor.size()[0], batch_size):
indices = permutation[i:i + batch_size]
batch_x, batch_y = X_train_tensor[indices], y_train_tensor[indices]
optimizer.zero_grad()
outputs = model(batch_x)
loss = criterion(outputs, batch_y)
loss.backward()
optimizer.step()
total_loss += loss.item() * len(indices)
average_loss = total_loss / len(X_train_tensor)
print(f'Epoch [{epoch+1}/{epochs}], Loss: {average_loss:.4f}')
torch.save(model.state_dict(), save_path)
print(f"Model weights saved to {save_path}")
def train(args):
random_numbers = [random.randint(0, 2**256) for _ in range(args.num_samples)]
#random_numbers = range(args.num_samples)
random_numbers_bitlists = []
hashes = []
inputs = []
try:
os.remove("trainingdata")
except OSError:
pass
print("generating samples")
with open("trainingdata", "a") as samplesfile:
for idx, number in enumerate(random_numbers):
print(idx)
#number_bit_list = [int((number >> i) & 1) for i in range(255, -1, -1)]
number_bit_list = [int((number >> i) & 1) for i in range(256)]
#print("number_bit_list ", number_bit_list)
random_numbers_bitlists.append(number_bit_list)
#number_bytes = number.to_bytes(32, byteorder='big')
#digest = hashlib.sha256(number_bytes).digest()
#hashint = int.from_bytes(digest, byteorder='big')
hashint = number + 1
#print("number", number, hex(number)[2:])
#print("hashint", hashint, hex(hashint)[2:])
bit_list = [int((hashint >> i) & 1) for i in range(256)]
samplesfile.write(f"{hex(hashint)[2:]} {hex(number)[2:]}\n")
inputs.append(bit_list)
X_train = np.array(inputs, dtype=np.uint8)
y_train = np.array(random_numbers_bitlists, dtype=np.uint8)
model = NeuralNetwork()
#train_model(model, X_train, y_train, epochs=1)
print("training model")
train_model(model, X_train, y_train, epochs=args.num_epochs)
def process_infer_input(input_string):
if len(input_string) == 64:
binary_values = []
for i in range(0, 64, 2):
hex_pair = input_string[i:i+2]
decimal_value = int(hex_pair, 16)
binary_representation = format(decimal_value, '08b')
binary_values.extend([int(char) for char in binary_representation])
return np.array(binary_values).reshape(1, -1)
else:
binary_values = [int(char) for char in input_string]
return np.array(binary_values).reshape(1, -1)
def count_same_bits(a, b):
xor_result = a ^ b
same_bits_count = bin(xor_result).count('0')
return same_bits_count
def infer(args):
inputbinstr = ""
if len(args.input) == 64:
binary_values = []
for i in range(0, 64, 2):
hex_pair = args.input[i:i+2]
decimal_value = int(hex_pair, 16)
inputbinstr += format(decimal_value, '08b')
#binary_values.extend([int(char) for char in binary_representation])
#return np.array(binary_values).reshape(1, -1)
elif len(args.input) == 256:
inputbinstr = args.input
else:
print("input must be 256 bit value as hex or binary string")
return
X_test = process_infer_input(inputbinstr)
X_test_tensor = torch.tensor(X_test, dtype=torch.float32)
model = NeuralNetwork()
model.load_state_dict(torch.load('model_weights.pth'))
model.eval()
with torch.no_grad():
predictions = model(X_test_tensor)
#print("predictions.numpy()", predictions.numpy())
roundedpredictions = np.round(predictions.numpy())
#print("roundedpredictions", roundedpredictions)
binstr = ''.join(map(str, roundedpredictions.flatten().astype(int)))
bitdiff = (int(inputbinstr, 2) ^ int(binstr, 2)).bit_count()
print(f"ibin:", inputbinstr)
print(f"obin:", binstr)
print(f"bitdiff: {bitdiff}")
print(f"ohex: {hex(int(binstr, 2))[2:]}")
def main():
parser = argparse.ArgumentParser(description='Train or infer with a neural network.')
subparsers = parser.add_subparsers(dest='command')
train_parser = subparsers.add_parser('train', help='Train the model')
train_parser.add_argument('--num_samples', type=int, nargs='?', default=500000, help='Number of samples to generate')
train_parser.add_argument('--num_epochs', type=int, nargs='?', default=2, help='Number of epochs to train')
train_parser.set_defaults(func=train)
infer_parser = subparsers.add_parser('infer', help='Infer with the model')
infer_parser.add_argument('input', type=str, help='Path to input data for inference')
infer_parser.set_defaults(func=infer)
args = parser.parse_args()
if 'func' in args:
args.func(args)
else:
parser.print_help()
if __name__ == "__main__":
main()
-

@ f03df3d4:a4d4f676
2025-02-26 22:50:51
Block 885471
5 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool
-

@ e7bf8dad:839ef3db
2025-02-26 22:50:51
Block 885471
5 - high priority
5 - medium priority
5 - low priority
2 - no priority
1 - purging
#bitcoinfees #mempool