07-03-2024, 02:39 PM
Let's discuss the AI Space Challenge.
|
HTB - AI Space Challenge
by Th3B4h0z - Wednesday July 3, 2024 at 02:39 PM
|
|
07-03-2024, 02:39 PM
Let's discuss the AI Space Challenge.
07-03-2024, 06:00 PM
Perform MDS on the distance matrix.
07-04-2024, 05:03 AM
thanks , it works
07-04-2024, 09:55 AM
import numpy as np
import matplotlib.pyplot as plt
from sklearn.manifold import MDS
def main():
try:
distance_matrix = np.load('distance_matrix.npy')
except Exception as e:
print(f"Error loading distance matrix: {e}")
return
print(f"Distance matrix shape: {distance_matrix.shape}")
try:
mds = MDS(n_components=2, dissimilarity='precomputed', random_state=42)
points = mds.fit_transform(distance_matrix)
except Exception as e:
print(f"Error performing MDS: {e}")
return
plt.figure(figsize=(10, 8))
plt.scatter(points[:, 0], points[:, 1])
plt.title('MDS Projection of Distance Matrix')
plt.xlabel('MDS Dimension 1')
plt.ylabel('MDS Dimension 2')
for i, point in enumerate(points):
plt.annotate(str(i), (point[0], point[1]))
plt.show()
if __name__ == "__main__":
main()
07-28-2024, 12:15 PM
after i run the code code export the img , but img is not clear to read how fix it
Ban reason: Compromised - Malware Logs (Permanent)
08-05-2024, 03:02 AM
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired | 360 | 91,374 |
03-28-2026, 09:28 AM Last Post: |
||
| [FREE] HTB-ProLabs APTLABS Just Flags | 23 | 4,717 |
03-28-2026, 03:30 AM Last Post: |
||
| [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot | 87 | 9,903 |
03-27-2026, 07:22 PM Last Post: |
||
| HTB Eloquia User and Root Flags - Insane Box | 13 | 2,698 |
03-27-2026, 06:14 PM Last Post: |
||
| HTB - ALL Challenges you Stuck in | 2 | 2,992 |
03-27-2026, 04:24 PM Last Post: |
||